Beeps and lights up when you haven’t picked up your bottle for a while.
Built and tested by Shahan Fathima K · Industrial Robotics Institute

A hydration reminder for your water bottle. A tilt (or water level) sensor notices each time the bottle is picked up to drink. If it isn’t used for a set time, the ESP8266 turns on an LED and buzzer to remind you to drink water.
| Component | Qty |
|---|---|
| ESP8266 NodeMCU | 1 |
| Tilt Sensor or Water Level Sensor | 1 |
| Buzzer | 1 |
| LED | 1 |
| Resistor 220Ω (for LED) | 1 |
| Jumper Wires | As needed |
| Power Supply | 1 |
| From | Connect to |
|---|---|
| Sensor VCC | 3.3V |
| Sensor GND | GND |
| Sensor OUT | D1 |
| LED + (via resistor) | D2 |
| LED − | GND |
| Buzzer + | D3 |
| Buzzer − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP8266 NodeMCU.
#define sensorPin D1
#define ledPin D2
#define buzzer D3
unsigned long lastDrinkTime = 0;
unsigned long reminderInterval = 10000; // 10 s for demo
void setup()
{
pinMode(sensorPin, INPUT);
pinMode(ledPin, OUTPUT);
pinMode(buzzer, OUTPUT);
}
void loop()
{
int sensorState = digitalRead(sensorPin);
if (sensorState == HIGH) // bottle tilted / used
{
lastDrinkTime = millis();
}
if (millis() - lastDrinkTime > reminderInterval)
{
digitalWrite(ledPin, HIGH);
digitalWrite(buzzer, HIGH);
}
else
{
digitalWrite(ledPin, LOW);
digitalWrite(buzzer, LOW);
}
delay(200);
}A hydration reminder for your water bottle. A tilt (or water level) sensor notices each time the bottle is picked up to drink.
You need: ESP8266 NodeMCU (1), Tilt Sensor or Water Level Sensor (1), Buzzer (1), LED (1), Resistor 220Ω (for LED) (1), Jumper Wires, Power Supply (1). Software: Arduino IDE.
Yes. It is rated beginner and takes about 1–2 hours to build, using the ESP8266 NodeMCU. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-050). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.