SafeNest β a Smart Infant Security System for Hospitals
by tanishsen in Circuits > Gadgets
13 Views, 2 Favorites, 0 Comments
SafeNest β a Smart Infant Security System for Hospitals




π― Introduction
With rising cases of infant trafficking, baby swaps, and delayed hospital response times, especially in rural or overcrowded hospitals, infant safety is no longer just a priority β itβs an urgent necessity.
SafeNest is our answer to this challenge β a real-time, scalable IoT-based infant monitoring and alert system designed to provide hospitals with peace of mind, security, and smart automation. Built using RFID, Bluetooth Low Energy (BLE), and Firebase, this project secured 2nd place π₯ at Techno India University's βTechnothonβ innovation challenge.
In this Instructable, weβll walk you through:
- The real-world problem we tackled
- How we designed and built SafeNest
- Our technical stack and components
- Working demos and future improvements
Supplies

Problem Statement
Infant abductions and mismatches between mothers and newborns continue to happen due to a lack of automated, real-time, and tamper-proof hospital monitoring systems. Manual processes and CCTV cameras aren't fast or reliable enough when it comes to safeguarding babies. Small hospitals, in particular, are often under-equipped, leaving newborns vulnerable.
Our goal: Design a real-time BLE-based tracking system with RFID verification and emergency alerts, all integrated into a central monitoring hub and dashboard.
What Is SafeNest?
SafeNest is a smart infant monitoring and alert system. It includes:
- BLE-enabled wearable band for the baby
- ββRFID card for guardian identity verification
- ESP32-based hub that constantly tracks BLE signals
- Live web dashboard with SMS alert support
- Buzzer + LED indicators for instant on-site alarms
β¨ Key Features
- β Real-time BLE distance monitoring
- β RFID-based guardian authentication
- β Tamper detection on baby band
- β Live dashboard with role-based access
- β SMS alerts via Twilio
- β Multi-hub scalability (1 hub β 10 bands)
Tools & Materials Used
Hardware
Component - Function
ESP32-WROOM-32D - Central hub controller
Seeed XIAO ESP32-C3 - BLE-based wearable for baby
RC522 RFID Module - Parent authentication at exits
3.7V 500mAh LiPo Battery - Powers the wearable band
RGB LED & Buzzer - Visual and sound alerts on the hub
Push Button - Hub reset functionality
System Workflow
ScenarioSystem Behavior
Baby in Safe Zone :
BLE is detected, RFID is scanned β LED turns green, system is normal.
Baby Near Exit :
BLE signal weakens β system checks RFID.
Baby Out of Range :
No BLE signal β LED turns red, buzzer sounds, SMS alert sent.
Band Tampered :
Wire loop broken β triggers alert like above.
Manual Reset (Nurse):
RFID card resets hub session when baby is safely returned.
Real-World Impact
With over 23 million births annually in India, the demand for reliable baby monitoring systems is growing rapidly. SafeNest directly addresses:
- Theft Prevention
- Audit Trail via Logs
- βLower staff burden
- Peace of mind for parents
Future Plans
- Add temperature, heart-rate, and SpOβ sensors to baby bands
- Add GPS + LoRaWAN for outdoor tracking
- Create mobile app alerts for remote monitoring
- Expand use cases to psychiatric wards and daycare centers
References
- PubMed: Infant Security in Hospitals (2009)
- The Guardian: My Newborn Was Kidnapped from a Hospital
- Reuters: Hospital Staff Arrested in Baby Trafficking
- SafeNest Dashboard Demo
- BLE Range Simulator
Build the Infant BLE Band


- Use a small BLE-enabled microcontroller (like Seeed XIAO ESP32-C3).
- Power it using a 3.7V LiPo battery and a JST connector.
- Attach two GPIO pins with a jumper wire to act as a tamper loop β if it's cut, it will trigger an alert.
- Program the microcontroller to continuously broadcast a BLE signal with a unique name (e.g., "BabyBand").
- Mount everything securely in a soft, baby-safe strap β comfortable and safe to wear.
BAND WORKING :
The Baby Tracking Band is a wearable safety device built using an ESP32-C3 microcontroller and powered by a LiPo battery connected via a JST connector. It uses Bluetooth Low Energy (BLE) to continuously broadcast a signal. A central hub receives this BLE signal and constantly monitors its presence. If the signal weakens or disconnects, the hub triggers an alert, indicating the baby is out of range or the band has been removed. The system uses low-power BLE for extended battery life. The device is enclosed in a soft, secure strap worn by the baby. This setup helps prevent theft or separation by providing real-time alerts through the hub.
β Goal: The band constantly sends its signal. If itβs tampered with or disconnected, the system detects it.
Set Up the Central Monitoring Hub


- Use an ESP32-WROOM-32D as the central controller.
- Connect:
- RFID Reader (MFRC522) for guardian verification
- RGB LEDs for status (Red = alert, Green = safe, Yellow = standby)
- Buzzer for sound alerts
- Push Button to reset the system manually
- Program it to:
- Scan BLE signals from the baby band
- Authenticate guardians via RFID
- Trigger alerts (LED + buzzer) when the band goes out of range or is tampered
HUB WORKING :
The Baby Tracking Band is a wearable safety device built using an ESP32-C3 microcontroller and powered by a LiPo battery connected via a JST connector. It uses Bluetooth Low Energy (BLE) to continuously broadcast a signal. A central hub receives this BLE signal and constantly monitors its presence. If the signal weakens or disconnects, the hub triggers an alert, indicating the baby is out of range or the band has been removed. The system uses low-power BLE for extended battery life. The device is enclosed in a soft, secure strap worn by the baby. This setup helps prevent theft or separation by providing real-time alerts through the hub.
β Goal: Monitor infant location + verify guardian before allowing the infant to leave.
Build the Web Dashboard

- Use React.js and Tailwind CSS to create a clean UI.
- Connect it with Firebase Realtime Database for live updates.
- Show:
- Active babies and their band status
- Hub connections
- Guardian registration data
- Alerts in real time
- Integrate Twilio API to send SMS alerts to parents/staff instantly on emergency.
LIVE DEMO : SafeNest Dashboard Demo
β Goal: Provide staff with real-time monitoring and alert control in one place.
Measuring Distance in the Baby Tracking System

In the Baby Tracking System, the distance between the baby band and the central hub can be estimated using Bluetooth RSSI values.
The formula is:
d = 10 ^ ((TxPower - RSSI) / (10n))
- d: Estimated distance in meters between the baby band and hub
- TxPower: Signal strength at 1 meter (reference value for the band)
- RSSI: Received signal strength at the hub (in dBm)
- n: Path-loss exponent (β2 for open spaces, 2β4 for indoor environments)
Example:
If TxPower = -70 dBm, RSSI = -90 dBm, and n = 3 β distance β 4.64 meters.
Accuracy Considerations in the Baby Tracking System:
- Environment: Walls, furniture, and people can weaken or reflect signals.
- Device Calibration: Variations in the ESP32βs antenna may affect readings.
- Stability: Averaging RSSI over time reduces fluctuations.
- Testing: Custom calibration in the actual environment (hospital, daycare, home) improves reliability.
LIVE DEMO : BLE Range Simulator
β Goal: This provides an approximate measure of the babyβs proximity to the hub, helping ensure real-time monitoring and timely alerts.
π¬ Final Thoughts
SafeNest isn't just a prototype β itβs a step toward redefining hospital security for newborns. With smart hardware, real-time alerts, and a modern dashboard, our system proves how tech can protect what matters most.