Bin Level REST API Kit: ESP32, HC-SR04, DHT22, JSON
Open this project in the Soldr app → What is Soldr.ai → wiring, code and test steps for exactly these parts
Bin Level REST API Kit: ESP32, HC-SR04, DHT22, JSON — an intermediate-level kit.
Bin Level REST API Kit: ESP32, HC-SR04, DHT22, JSON
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-7 days.
Kit at a glance
What you build: A bin level REST API: an HC-SR04 in the lid measures how full a bin is, a DHT22 and two LDRs add temperature, humidity and light, and an ESP32 serves all of it as JSON from GET endpoints, so any app or script on your Wi-Fi can check it.
What's in the box
- ESP32 Dev Board
- DHT22
- HC-SR04
- LDR × 2
- 10kΩ Resistors × 10
- 4.7kΩ Resistors × 5
- 400-pt Breadboard
- M-M Wires × 20
- Micro USB Cable
Power: USB. A USB charger is not included.
Skill level: Intermediate (3-4 hours).
Frequently asked questions
What is a REST API?
Web addresses that return data, here as JSON.
Is the HC-SR04 safe on an ESP32?
Use two of the 10kΩ resistors as a divider on its 5V echo pin.
Picture a factory floor where a manager can check the fill level of every material bin from a browser on the local WiFi. This kit lets you build that system—an ESP32 microcontroller reads an ultrasonic distance sensor to gauge bin level, a DHT22 for ambient conditions, and LDRs for lid status, then serves all the data as clean JSON through a REST API that any device on the network can query.
What You'll Build
You'll construct a working industrial inventory monitor that mounts on a bin, wirelessly reports fill percentage, temperature, humidity, and light status via HTTP GET endpoints. The ESP32 becomes a self-contained IoT node—no cloud required—that returns sensor readings in JSON format, ready for dashboards, logging, or alerts.
What You'll Learn
- Programming ESP32 to serve multiple sensor data via RESTful JSON APIs
- Wiring and reading ultrasonic distance sensors (HC-SR04) for bin level measurement
- Integrating DHT22 temperature and humidity data into an IoT project
- Using light-dependent resistors (LDRs) for binary state detection (lid open/closed)
Kit Contents
| Component | Quantity |
|---|---|
| ESP32 Dev Board | x1 |
| DHT22 | x1 |
| HC-SR04 | x1 |
| LDR | x2 |
| 10kΩ Resistors | x10 |
| 4.7kΩ Resistors | x5 |
| 400-pt Breadboard | x1 |
| M-M Wires | x20 |
| Micro USB Cable | x1 |
Who This Kit Is For
This kit is ideal for CBSE students working on computer science or electronics projects that require IoT and API integration. B.Tech ECE/EEE students building mini projects or participating in Smart India Hackathon will find the ready-to-code REST API framework a massive head start. ATL Tinkering Lab mentors can use it as a structured intermediate challenge that moves beyond blinking LEDs into real industrial automation concepts.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Your kit includes a QR code linking to an AI companion trained specifically on this bin level monitor project. It can walk you through debugging wiring, code errors, and API testing. If you're still stuck, reach out via WhatsApp for a direct reply from our build team.
Do I need an internet connection to use the monitor?
No. The ESP32 creates its own local WiFi access point or connects to your existing router. All REST API requests happen within the local network—no cloud service or internet required.
Can I integrate the JSON data into my own dashboard or app?
Absolutely. The GET endpoints return standard JSON that you can parse in Python, a flow-based dashboard tool, Excel, or any custom web dashboard—just point your HTTP client to the ESP32's IP address.
What if I want to monitor multiple bins?
You can easily replicate the setup with additional ESP32 kits, assigning each a unique IP or endpoint. The project code is structured to let you scale from a single bin to a full inventory wall.
Industrial Inventory — ESP32 serves a REST API with GET endpoints returning sensor JSON. Any client can query over local WiFi.
What's in this kit
- ESP32 Dev Board
- DHT22
- HC-SR04
- LDR x2
- 10kΩ Resistors x10
- 4.7kΩ Resistors x5
- 400-pt Breadboard
- M-M Wires x20
- Micro USB Cable
Other projects you can build
Shipping Information
- Prepaid Orders: ₹45 for orders up to ₹1,999, FREE shipping above ₹1,999
- COD Orders: ₹45 shipping for orders up to ₹1,999, FREE shipping above ₹1,999. COD available.
- Delivery Timeline: Dispatch in 3-7 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items