How to Build a Smart LPG Auto-Reorder System

Meta Title: How to Build a Smart LPG Auto-Reorder System Using ESP32 and IoT

Meta Description: Learn how to build a Smart LPG Auto-Reorder System using ESP32, load cells, GSM, and IoT technology. Includes wiring diagrams, bill of materials, circuit diagrams, flowcharts, troubleshooting tips, and real-world

Running out of cooking gas unexpectedly is a common problem in many households and restaurants. A Smart LPG Auto-Reorder System continuously monitors the remaining gas in a cylinder and automatically sends alerts or books a refill when gas levels become critically low.

This project combines ESP32, load cell sensors, GSM communication, cloud dashboards, and IoT technologies, making it an excellent project for Engineering, ICT, Computer Science, Physics, and Applied Technology categories.


Quick Answer: Smart LPG Auto-Reorder Wiring Diagram

If you want to build the project immediately, use the following wiring configuration.

ComponentPinESP32 Pin
HX711 DTDTGPIO19
HX711 SCKSCKGPIO18
GSM Module SIM800L TXTXGPIO16
GSM Module SIM800L RXRXGPIO17
OLED Display SDASDAGPIO21
OLED Display SCLSCLGPIO22
BuzzerPositiveGPIO23
RGB LEDSignalGPIO25
Wi-FiBuilt into ESP32

Important: SIM800L modules require a stable external 4V power supply due to high current requirements.

System Workflow

Gas Cylinder → Load Cell → HX711 Amplifier → ESP32 → SMS Notification → Automatic Reorder


https://images.openai.com/static-rsc-4/iHtr_Rr3-N1vZ-FV1i9Pg4EItWpg7OHLaMVG9yMw-RJXYvqTkRzdFHjrSFFM5_RkvhrfEFyfuGSmTM8Gb82AEkndrwiR7fvgxyhr4mqT9_NyrwV5HlCY1D2mqk5JgjYyDBCZIzIpnrZ6ZM1XqhZ_5fOC_6hrPIdzn2dmL72dUTL_wSnI-pa6EWmnS5PrgNk5?purpose=fullsize
https://images.openai.com/static-rsc-4/9sHa7lJIMdoTNAApvWU1dMv_XhAW1IHv_nwpAToJ5aEbdrpzXdcLL7V69gLKJRez80nhlEWniygYFLG4_7NJLrLNcVEKmHQMylHz9e9f7ScGep0-MTlq-dIUP8icox7Un1Xxb-NNQeQyHjmdXid4s89eGQWB86JlWUyLnx2ZdbztuqoVX36sIvnneCp-ye0_?purpose=fullsize
https://images.openai.com/static-rsc-4/m3KnfKcziEia7kqBMtoxxE8OBmnreEWC7ir9p-7AyXiwniN1WyBdOj3a35nInQ_Umh3IH-ZVGGWycDxOkDlTK5uxSNXaFPkxTTC5AxxwMYJDrhJsDK9YnhINa7J5f6y_d3d_06p1voaiTP_Pw8NO17BmPvT1QNgIeUF-n7XGpSqOXmIqFCNKnqhPovtWq3HB?purpose=fullsize

5

Why Build a Smart LPG Auto-Reorder System?

Many homes discover their LPG cylinder is empty only when cooking.

A smart monitoring system helps:

Benefits

  • Prevents unexpected gas shortages
  • Provides refill reminders
  • Automatically books gas refills
  • Reduces inconvenience
  • Improves household planning
  • Supports smart home automation

How Does the Smart LPG Auto-Reorder System Work?

The system consists of four major sections.

1. Weight Measurement

A load cell continuously measures the weight of the LPG cylinder.

2. Signal Processing

The HX711 converts tiny load cell signals into digital values.

3. ESP32 Analysis

The ESP32 calculates remaining gas percentage and predicts usage.

4. Notification System

If gas levels fall below a threshold:

  • SMS alerts are sent.
  • Mobile notifications are generated.
  • Automatic reorder requests can be triggered.

https://images.openai.com/static-rsc-4/qV7bq6NO3l0SjCvXefuRyin5qcd-LQarT4sMwgdAMCi-0xKjdRHF-lhkk4ZNkpbsYjYuWWSn3hDrX_csXD4vh9Z8iuUQ6Fm1NSjMhhWej_H0td_4m4WAWzOJXwWlBgj9kG5GpwjcOV_KNpJaWquB5itI-OeHpkU2VA-K3DJvtw5gZpk4AVOju22jG93QXSHe?purpose=fullsize
https://images.openai.com/static-rsc-4/G2-NeWVGd581HQF5s9ujeMV__xx0uYMgFRuI15re_fVObeLqkFIkc4oqdL3vOcPX6VoFSvN8mYoHs2Vdu4IIez1yO04LtMhtLvJI8M22ivzMQ9sUdA2cY5THNskZv3CY3N-FWmjIP-lHiKDYCXiZCvT-G4R_-2gJ83SVQuANs_11RENkTgstaC74VkuCyIpo?purpose=fullsize
https://images.openai.com/static-rsc-4/yNTLZuRKOuBxlq_o6j0j6HFGgNiXyLb4GmCGAzhlrIqbAHztfKVqgnbZEr8Q_-h0F8_DiqbEZfBcDoSpptIfa8YhRbKCD0ujLpN4Qd0vYN8lqWVPs6rUe92HPio7mBK2xxjNDuI0xh_1PU273-_8WR_m6ehmQWLb846Jh-JYf_vGOqwsdK2s5XZhCsH29lpW?purpose=fullsize

5

Bill of Materials (BOM)

ComponentQuantityPurpose
ESP32 Development Board1Main controller
Load Cell (20–50 kg)1Measures cylinder weight
HX711 Amplifier Module1Amplifies load cell signals
SIM800L GSM Module1SMS notifications
OLED Display1Displays gas level
RGB LED1Status indicator
Piezo Buzzer1Audible alerts
Breadboard1Circuit assembly
Jumper WiresSeveralConnections
Power Supply1System power

Estimated Project Cost

ItemApproximate Cost
ESP32$8
Load Cell$8
HX711$3
SIM800L$8
OLED Display$5
Miscellaneous$10

Estimated Total Cost: $40–50


Components Overview

https://images.openai.com/static-rsc-4/E2aSH0fBW-M5m37xYLez2KOSy-A_jioElo1m4f1Hb5SPgqnpyDYvZp9uIhv4mFyt8IpikPCa6B-3G044D1xLlANWM2hKbuo90Zad_Xojp1SB7Qc1lCZ6_nliFoffuILL6haVMQtARxUxYBP__KwGaQqJqC6FLR7pL7Eowx0uSdiLQojGkoSgGKPmyLINmVIs?purpose=fullsize
https://images.openai.com/static-rsc-4/tFJeYlSdhKCDI-CHAW6BBeGdPQlj635KX3gOtrpGYnLgg42IjOZSPK1nt0pNyvaTSO7rIbLCuk_yTcJ8MXkGVQF0GaeTZdK1isKHVV3MFUDR_Ien_rSEttF-cv0EjvRNwTBphdZR_fKF4VROXnon06IAx1KMtneOQUpMMHNnUoaOizT4ckfu5B-N-4mOUtWM?purpose=fullsize

5


Key Features

✅ Real-time gas monitoring

✅ Automatic refill notifications

✅ SMS alerts

✅ Cloud dashboard

✅ Consumption prediction

✅ Low gas warning system

✅ Smart home integration


Block Diagram

LPG Cylinder
      ↓
Load Cell
      ↓
HX711 Module
      ↓
ESP32 Controller
      ↓
OLED + GSM + Cloud Dashboard
      ↓
User Notification

https://images.openai.com/static-rsc-4/qV7bq6NO3l0SjCvXefuRyin5qcd-LQarT4sMwgdAMCi-0xKjdRHF-lhkk4ZNkpbsYjYuWWSn3hDrX_csXD4vh9Z8iuUQ6Fm1NSjMhhWej_H0td_4m4WAWzOJXwWlBgj9kG5GpwjcOV_KNpJaWquB5itI-OeHpkU2VA-K3DJvtw5gZpk4AVOju22jG93QXSHe?purpose=fullsize
https://images.openai.com/static-rsc-4/MrdxpY1kMrvt16oufXtQLXOuI7faGhTGwzlZdIQ9jSuh5l7RyYLaZa-aJ5ZU24KxvyHMwnsu398pJid7WRgkkXUqSNuG9dVGe8ewLWWwvvDn02Jdf33EKS3cx4JPOjKlviPuXAW4tuFvblM4Q3IjwcqKKuJSnEjALbnSwqAxT1awI3j5dgoO8hGv8S3XmPnP?purpose=fullsize
https://images.openai.com/static-rsc-4/MdbvqEuDvRQjhug9UK5tiBC1PojZLEDLNgnDYz-JViZapKd2ChpZdxkUM8l9N18lPmPE6MiaLZfcpExmlhZEkE3yUwY8_HniFpht-Uzaz58XyRy2JuNZStd_jtNJ7wr7DD4WEhY6UCDVEb1vt4wVrYyyeMEkNORkQHQFmr4ImYwJhOIy5ggq5oKhrPlcGTTc?purpose=fullsize

5

Circuit Connections Explained

HX711 Module

  • DT → GPIO19
  • SCK → GPIO18
  • VCC → 5V
  • GND → GND

OLED Display

  • SDA → GPIO21
  • SCL → GPIO22

GSM Module

  • TX → GPIO16
  • RX → GPIO17

Indicators

RGB LED → GPIO25

Buzzer → GPIO23


https://images.openai.com/static-rsc-4/mxSzSc4olL31Zr4mmFzs9D201EsLYKhbqkOHHyxZ1H8P2AFYv71w6Nm1yrVpLR5d2LRBlEuoh1l3DS5mHj3K_NOEZb0DI3gzxifTTOubfiI53zob1UnklzSoBwTiZJenwi0YeL9tM7TbbGConpoeMlwg8oCI82Nrrqx50Q6nxd7Eu-dROvSHjtSUy5g268Ck?purpose=fullsize
https://images.openai.com/static-rsc-4/7EgKRcJn1obz5A8nyAA9ZgGMvhkWAUCqPrXJNhjqCAl6wy8w4EXDZneIRRX70_xcOOFHOgWkaKrTS3UB-EwKq5HRswIspLwU8OJIqQp-xMMrM6WVXYWbIHyj_XJXIL-bigztV2scwl35RVg8X_4mXDzpyJc06scbsCMaFqdWNpfMUQYkZSI3gpMbw51wYy-i?purpose=fullsize
https://images.openai.com/static-rsc-4/ycxErUybLdGLgEmri6SYTpMbnS0m0CXox31ybNSYh9GWeA9eDEv7_BDml3J_1Y_BybYWj-46icvNzJvd6xGGk-j4iE3zGxqJQXE1i-UN0TbCPsWTFbA_YZf4TcvUJOaaKaekudwB_C1_E1OkosYuteXxSsv3zXmczAKHtR6-zJ_nQVQNBnrASGi4YY8rFWde?purpose=fullsize

Step-by-Step Guide: How to Build a Smart LPG Auto-Reorder System

Step 1: Install the Load Cell

Mount the load cell beneath the LPG cylinder platform.

Ensure stable and accurate weight measurement.


Step 2: Connect Electronics

Wire the HX711, ESP32, GSM module, OLED, and indicators according to the connection table.


Step 3: Upload the ESP32 Program

The ESP32 program should:

  • Continuously read cylinder weight.
  • Calculate remaining LPG percentage.
  • Predict refill dates.
  • Send notifications.

Example logic:

IF LPG Level < 20%

Display Warning

Send SMS Alert

Initiate Auto-Reorder

ELSE

Display Remaining Gas

Step 4: Configure Notifications

Set:

  • User phone number
  • LPG supplier contact
  • Cloud dashboard settings

Step 5: Test the System

Simulate decreasing cylinder weight and verify:

  • OLED updates
  • SMS notifications
  • Alarm activation
  • Cloud synchronization

https://images.openai.com/static-rsc-4/AJYcdeFdpxRg56urfD3wbZlaITDQCL2rKGmbpli6iVwzXqf_9rEP0QLPdpUtFnZMbqzqAWSNv3HFCyOsvg6zBf539G4aZ6pl_CaltfZA0M0OWkVHesvU7wbY9cCwtDFMej33ID1TgQm3hg785q_-ZsIPEdP8fNrd5Jfbqp2PkIR1efvnmHBG5UhYyDdOmV9m?purpose=fullsize
https://images.openai.com/static-rsc-4/6Xc7lBhdk9Lylw9KO5Ixmo2P-TqPKpPJyGD19BIjw7J4U5q8CEC5Nkxew4a_C7ZD6NEFRW9SOr1XZot1uyHW8S7-BSY1FGWexk3wPOH5SWRJJohMGSW5x6sC1nKSbP7Dzq01-AAw1iClCoWFTn7CI61HTpBDlNhHebo0L4iXHmdQlEOqb1C8ItSHGtIclw6s?purpose=fullsize
https://images.openai.com/static-rsc-4/q_2XkZa8rSa_73gOHnp-42moMrZDfAg_Jqyxg29Nt__JFxli2at1P-BjKUloVPH6jUsy7amsTR8w0E8gYR7jjR-iyJlwViS_J0Se8DRPH6NQxJJqFiAlkMyRLHycCwPW4pNgZXEP1CtskqpjTZkvzTOu1qGVenfAdTbfGbS3HE27h3WdVVQAvVEoapw72OUE?purpose=fullsize

6

ESP32 Program Logic

The ESP32 continuously repeats the following process:

  1. Read load cell values.
  2. Calculate remaining gas percentage.
  3. Estimate remaining usage days.
  4. Display status.
  5. Send notifications if necessary.
  6. Upload data to cloud dashboards.

Mathematical Calculation

LPG Percentage Formula

Remaining Gas (%) =
(Current Weight - Empty Cylinder Weight)
----------------------------------------- ×100
(Full Cylinder Weight - Empty Weight)

Applications

This system can be used in:

  • Homes
  • Hotels
  • Restaurants
  • Schools
  • Hospitals
  • Commercial kitchens
  • Industrial gas monitoring

Advantages and Limitations

Advantages

  • Prevents unexpected gas shortages
  • Easy to build
  • Real-time monitoring
  • Expandable to smart homes
  • Supports predictive analytics

Limitations

  • Requires load cell calibration
  • GSM modules require stable power
  • Cylinder movement may affect readings

Future Improvements

You can improve this project by adding:

AI Prediction

Predict refill dates based on usage patterns.

Mobile Application

Track gas consumption remotely.

Voice Assistant Integration

Check gas levels using voice commands.

QR-Based Automatic Booking

Automatically order gas through supplier APIs.

Solar Power

Create a fully self-powered system.


How to Fix Common ESP32 Upload Errors

Error: Failed Connecting to ESP32

Solutions

  • Hold BOOT button during upload.
  • Check USB drivers.
  • Replace USB cable.

Error: Load Cell Gives Incorrect Readings

Solutions

  • Recalibrate HX711.
  • Verify load cell mounting.
  • Remove vibrations.

Error: GSM Module Cannot Send SMS

Solutions

  • Use external 4V power supply.
  • Verify SIM card activation.
  • Check network signal strength.

Error: OLED Does Not Display

Solutions

  • Verify SDA/SCL wiring.
  • Check I2C address.

https://images.openai.com/static-rsc-4/AgsdJ7NnxJmFrRAgh_639XprF_RDjMcetknG6a73ZZXcBrEqO96hZZBw8V9lcagaapFYaLAngVxEzUNxOSGx5j5qZiQa4TG2958gL27UoXyRtjCbW0F51IjLYE9uCCBN4h5E66FVZRd1l7DEYvyffldfv2Jn60Co9j1rwJnXUaI1pWTFh9ALSEYsukSa_93T?purpose=fullsize
https://images.openai.com/static-rsc-4/mgZ-83lQSSOYlIU77LqqIB1GaweCJwp9GPUABjuoifjDtlHq_ScedKbCgJ-ox5svyAbGE0vyPmqbncpLTJ1XSBFl971ZxkkrTiiqyXw9m1tUf2mDyET01QoDJZQR--wYQ2PzdgFXHzf-yOu8xwSxhpgTpeytP5UCjYRdveLS29BX23L5DVpG5FbEVd2rWFpJ?purpose=fullsize
https://images.openai.com/static-rsc-4/anDObp9G60fb98wlWvsIkqyFPs3GUe9grBoiKyhWxFksAHrd8-7AVfkt00edBUOZJMEatIUv7weAmYyjdMcZAEa2045XlXBQCyvdUmi4OEgZNG_WpZ5ttNUcqccgCqV22IWKzqE9454j6HH3nESBvkegxdG5nj1d_wh1JyiNEuGqcZj27mzQTpROpqMjrIsE?purpose=fullsize

5

Final Thoughts

Learning how to build a Smart LPG Auto-Reorder System is one of the most practical IoT projects for modern homes.

By combining ESP32, load cells, GSM communication, and cloud analytics, you can create a system that prevents unexpected gas shortages and automates refill management.

  • mbeva

    Dominic Mbeva is a science teacher, experienced researcher, innovator, and creative technologist with expertise in STEM education, digital media, and scientific research. As a Kenya Science and Engineering Fair (KSEF) advisor and projects manager, he mentors young scientists, guiding them in developing award-winning innovations. He is also an IC Technorat, leading advancements in science and technology. Beyond education, Dominic is a skilled photographer and video editor, using visual storytelling to make science more engaging. His philosophy, “If you take care of minutes, hours will take care of themselves,” reflects his belief in consistent effort, strategic thinking, and innovation to drive success in both research and creativity.

    Related Posts

    How to Make a Periodic Trends LED Board Using Arduino

    Meta Title: How to Make a Periodic Trends LED Board Using Arduino and LEDs Meta Description: Learn how to build a Smart Periodic Trends LED Board using Arduino, RGB LEDs,…

    Read more

    How to Make a Smart Periodic Table Model Using Arduino and ESP32

    Meta Title: How to Make a Smart Periodic Table Model Using Arduino, ESP32, LEDs and IoT Meta Description: Learn how to make a Smart Periodic Table Model using Arduino and…

    Read more

    Leave a Reply

    Your email address will not be published. Required fields are marked *