Shows whether each library seat is free or taken.
Built and tested by Drisya K S · Industrial Robotics Institute

A seat-finder for busy libraries. An IR sensor on each seat detects whether someone is sitting there; the ESP32 lights an LED and reports "Seat Occupied" or "Seat Available", ready to be shown on a display or in the Blynk app so students can find a free seat quickly.
| Component | Qty |
|---|---|
| ESP32 Dev Board | 1 |
| IR Sensor Module (one per seat) | 1 |
| LED Indicator | 1 |
| Resistor 220Ω | 1 |
| Jumper Wires / Breadboard | As needed |
| 5V Power Supply | 1 |
| From | Connect to |
|---|---|
| IR sensor VCC | 3.3V |
| IR sensor GND | GND |
| IR sensor OUT | GPIO 5 |
| LED + (via 220Ω) | GPIO 26 |
| LED − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP32.
#define sensorPin 5
#define ledPin 26
void setup() {
pinMode(sensorPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(115200);
}
void loop() {
int seatStatus = digitalRead(sensorPin);
if (seatStatus == LOW) {
Serial.println("Seat Occupied");
digitalWrite(ledPin, HIGH);
} else {
Serial.println("Seat Available");
digitalWrite(ledPin, LOW);
}
delay(500);
}A seat-finder for busy libraries. An IR sensor on each seat detects whether someone is sitting there; the ESP32 lights an LED and reports "Seat Occupied" or "Seat Available", ready to be shown on a display or in the Blynk app so students can find a free seat quickly.
You need: ESP32 Dev Board (1), IR Sensor Module (one per seat) (1), LED Indicator (1), Resistor 220Ω (1), Jumper Wires / Breadboard, 5V Power Supply (1). Software: Arduino IDE, Blynk (optional).
Yes. It is rated beginner and takes about 1–2 hours to build, using the ESP32. 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-163). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.