Weighs your gas cylinder and alerts your phone when it is time to book a refill.
Built and tested by Drisya K S · Industrial Robotics Institute
Arduino IDE, Blynk IoT app, HX711 library (bogde)
A smart LPG monitor that prevents running out of gas. The cylinder stands on a load cell; the ESP8266 reads its weight through an HX711 amplifier and sends it to the Blynk app. When the weight drops below the threshold, the buzzer and LED turn on and the app shows "Gas Low – Book Cylinder".
| Component | Qty |
|---|---|
| ESP8266 NodeMCU | 1 |
| Load Cell (weight sensor) | 1 |
| HX711 Load Cell Amplifier | 1 |
| Buzzer | 1 |
| LED (optional) | 1 |
| Resistor 220Ω | 1 |
| Jumper Wires / Breadboard | As needed |
| Power Supply | 1 |
| From | Connect to |
|---|---|
| Load cell wires | HX711 E+/E−/A+/A− |
| HX711 VCC | 5V (VIN) |
| HX711 GND | GND |
| HX711 DT | D2 |
| HX711 SCK | D3 |
| Buzzer + | D5 |
| Buzzer − | GND |
| LED + (via resistor) | D6 |
| LED − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP8266 NodeMCU.
#define BLYNK_TEMPLATE_ID "YourTemplateID"
#define BLYNK_TEMPLATE_NAME "LPG Monitor"
#define BLYNK_AUTH_TOKEN "YourAuthToken"
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "HX711.h"
char ssid[] = "YourWiFiName";
char pass[] = "YourWiFiPassword";
#define DT D2
#define SCK D3
HX711 scale;
int buzzer = D5;
int led = D6;
float weight;
float threshold = 5000; // grams; adjust for your cylinder
float calibration_factor = 1.0; // set after calibrating with a known weight
void setup() {
Serial.begin(9600);
scale.begin(DT, SCK);
scale.set_scale(calibration_factor);
scale.tare(); // empty platform = zero
pinMode(buzzer, OUTPUT);
pinMode(led, OUTPUT);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
}
void loop() {
weight = scale.get_units(5);
Blynk.virtualWrite(V1, weight);
if (weight < threshold) {
digitalWrite(buzzer, HIGH);
digitalWrite(led, HIGH);
Blynk.virtualWrite(V2, "Gas Low - Book Cylinder");
} else {
digitalWrite(buzzer, LOW);
digitalWrite(led, LOW);
Blynk.virtualWrite(V2, "Gas Level Normal");
}
Blynk.run();
delay(1000);
}A smart LPG monitor that prevents running out of gas. The cylinder stands on a load cell; the ESP8266 reads its weight through an HX711 amplifier and sends it to the Blynk app.
You need: ESP8266 NodeMCU (1), Load Cell (weight sensor) (1), HX711 Load Cell Amplifier (1), Buzzer (1), LED (optional) (1), Resistor 220Ω (1), Jumper Wires / Breadboard, Power Supply (1). Software: Arduino IDE, Blynk IoT app, HX711 library (bogde).
It is rated intermediate and takes about 3–4 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-145). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.