Ingestive behavior is driven by negative internal hunger and thirst states, as well as by positive expected rewards. Although the neural substrates underlying feeding and drinking behaviors have been widely investigated, they have primarily been studied in isolation, even though eating can also trigger thirst, and vice versa. Thus, it is still unclear how the brain encodes body states, recalls the memory of food and water reward outcomes, generates feeding/drinking motivation, and triggers ingestive behavior. Here, we developed an INstrument for Gauging Eating and Thirst (INGEsT), a custom-made behavioral chamber which allows for precise measurement of both feeding and drinking by combining a FED3 food dispenser, lickometers for dispensing liquid, a camera for behavioral tracking, LED light for optogenetics, and calcium imaging miniscope. In addition, in vivo calcium imaging, optogenetics, and video recordings are well synchronized with animal behaviors, e.g., nose pokes, pellet retrieval, and water licking, by using a Bpod microprocessor and timestamping behavioral and imaging data. The INGEsT behavioral chamber enables many types of experiments, including free feeding/drinking, operant behavior to obtain food or water, and food/water choice behavior. Here, we tracked activity of insular cortex and mPFC Htr3a neurons using miniscopes and demonstrate that these neurons encode many aspects of ingestive behavior during operant learning and food/water choice and that their activity can be tuned by internal state. Overall, we have built a platform, consisting of both hardware and software, to precisely monitor innate ingestive, and learned operant, behaviors and to investigate the neural correlates of self-motivated and learned feeding/drinking behaviors.