The problem
In a busy ward, nurses have no simple way to know which beds are occupied, which are empty, or which patient is asking for help, unless someone walks the ward and checks each bed by hand. Hospital bed monitoring with occupancy alerts answers this with a bedside node at every bed and one shared nurse-station dashboard. A load cell under the bed frame senses the weight of the person in it, a red call button lets the patient summon help, and an ESP32 at each bed sends occupancy and call events over Wi-Fi to the dashboard. The dashboard shows every bed as occupied, vacant or calling and raises an alert the moment a call is pressed, and flags beds that stay empty. The build is deliberately ward-scale: one node per bed, one dashboard for the ward. It is an academic prototype for learning embedded sensing, wireless messaging and dashboard design — not a replacement for certified medical monitoring equipment.
Strain-gauge cell under the bed measures the load continuously.
How it works
A load cell under each bed frame turns the patient's weight into a tiny electrical signal, an ESP32 reads and judges that signal, and the nurse-station dashboard turns the judgement into a visible ward state. Inside the load cell, four strain gauges wired as a Wheatstone bridge change resistance as the metal bar flexes under weight, and the HX711 amplifier turns a signal of only a few millivolts into a 24-bit digital reading. The ESP32 averages readings, subtracts the empty-bed tare, and compares the result with a 15 kg threshold to decide occupied or vacant, while the call button is watched separately and debounced in firmware. Each node publishes its bed state over Wi-Fi and MQTT, the dashboard subscribes and renders the ward grid, and a call press raises a latched alert while a long vacancy raises a vacancy flag.
- The bar-type load cell under the bed frame flexes under the patient's weight, and the HX711 digitises the bridge signal with its 24-bit ADC at 10 SPS.
- The ESP32 averages a short run of readings, subtracts the empty-bed tare taken at setup, and compares the result with the 15 kg occupancy threshold.
- The call button is read separately and debounced for 50 ms in firmware (design choice), so one press registers as exactly one call event.
- Each bedside node publishes its bed state — occupied, vacant or calling — over Wi-Fi to the MQTT broker, and the nurse-station dashboard subscribes to every bed topic.
- The dashboard renders the ward grid, raises a call alert the instant a call arrives, and flags a bed as vacant after its reading stays below threshold for 10 minutes.
- A nurse acknowledges each alert on the dashboard, which clears it, while the bedside LCD keeps showing the local bed state and load reading.
Builder note from the build: the empty-bed tare must be re-taken after the bed is remade, because a folded blanket or a repositioned mattress shifts the zero by several kilograms, and a stale tare is the most common cause of false vacant-or-occupied flips. The firmware therefore re-tares only when a nurse holds the tare button, never automatically.
| Approach | Occupancy detection | Patient call | Privacy | Best when |
|---|---|---|---|---|
| Load cell + ESP32 + dashboard (this project) | Weight-based, per bed, continuous | Button with latched dashboard alert | High — no camera, no identity | A ward demo with live bed states |
| Manual ward rounds | Nurse checks each bed by walking | Patient calls out or waits | High — nothing recorded | No hardware is available at all |
| Camera-based bed monitoring | Vision detects a person in bed | Needs a separate call system | Low — video in a ward | A research lab with consent and ethics approval |
| Wearable patient monitor | Worn sensor reports presence and vitals | Depends on the device | Medium — patient-worn data | Vital-sign monitoring is the goal, not bed state |
Tech stack:
- ESP32 DevKit (bedside node, Wi-Fi)
- HX711 load-cell amplifier (24-bit ADC)
- Bar-type strain-gauge load cell
- Momentary call button + 16x2 LCD with I2C backpack
- Arduino IDE with ESP32 core
- MQTT protocol with Mosquitto broker
- HTML, CSS and JavaScript nurse-station dashboard
- 5 V USB power per bedside node
| Parameter | Value |
|---|---|
| Controller | ESP32 DevKit with Wi-Fi 802.11 b/g/n |
| Occupancy sensor | Bar-type strain-gauge load cell under the bed frame |
| Load-cell amplifier | HX711 · 24-bit ADC · 10 SPS (datasheet value) |
| Amplifier gain | 128 on channel A (datasheet value) |
| Full-scale input | ±20 mV at gain 128 with 5 V AVDD (datasheet value) |
| Amplifier supply | 2.6–5.5 V (datasheet value) |
| Call input | Momentary push button · 50 ms debounce in firmware (design choice) |
| Occupancy threshold | 15 kg (settable in firmware) |
| Vacancy alert delay | 10 min below threshold (settable in firmware) |
| Connectivity | Wi-Fi 802.11 b/g/n · MQTT to the nurse-station dashboard |
| Dashboard ward view | 8 beds per ward view (design target) |
| Status update interval | Approximately 2 s per bed status update (design target) |
| Bedside display | 16 × 2 character LCD with I2C backpack |
| Power per node | 5 V USB adapter (design target) |
Project features
Hospital bed monitoring with occupancy alerts rests on four capabilities that work together as one ward system. Load-cell occupancy sensing watches every bed continuously, so the dashboard always knows which beds hold a patient and which are free. The patient call button gives a bedridden patient a direct line to the nurse station, and the alert stays latched on the dashboard until a nurse acknowledges it. The nurse-station dashboard turns all of this into one ward grid with per-bed detail, so a nurse sees occupancy, load readings and alerts without walking the ward. Vacancy flagging completes the loop by marking beds that have stayed empty, so the next admission can be planned instead of discovered by chance. All four capabilities run on the same simple hardware at every bed — one ESP32 node, one load cell and one call button — so the system scales bed by bed without any redesign, and the dashboard is the only shared component.
- [Load-cell occupancy sensing] A bar-type load cell under the bed frame measures the weight on the bed, and the ESP32 compares the reading against a settable 15 kg threshold to decide occupied or vacant. Implemented in the base build.
- [Patient call button with latched alert] A large red push button beside the bed raises a call alert on the dashboard the instant it is pressed, and the alert stays visible until a nurse acknowledges it. Implemented in the base build.
- [Nurse-station ward dashboard] A web dashboard shows the whole ward as a bed grid with occupancy state, live load readings and a bed-detail panel, updating over MQTT as bed states change. Implemented in the base build.
- [Vacancy flagging] A bed whose reading stays below the occupancy threshold for 10 minutes is flagged as vacant on the dashboard, so staff can plan the next admission. Implemented in the base build.
- [Bedside LCD status display] A 16x2 LCD at each bed shows the bed state and current load reading locally, so the node is useful even when the dashboard is not in view. Implemented in the base build.
- [Settable thresholds and timings] The occupancy threshold, vacancy delay and alert behaviour are set in the firmware, so the same node can be tuned for a light paediatric bed or a heavy ward bed. Configurable in the base build.
- [SMS alert on patient call] An optional GSM module can send a text message to the duty nurse's phone when a call is pressed, in addition to the dashboard alert. Optional add-on, not part of the base build.
What is included
- Working bedside node prototype (ESP32, HX711, load cell, call button, 16x2 LCD)
- Nurse-station web dashboard (ward bed grid, alerts, bed-detail panel)
- Firmware source code with tare, threshold, vacancy-delay and MQTT settings
- Circuit and wiring documentation with a full component list
- Project abstract PDF, project report, presentation PPT and viva Q&A document
- Demonstration guidance for the occupancy, call and vacancy scenarios
Limitations & prerequisites
- Load-cell readings drift with temperature and with mattress or blanket changes, so the tare must be re-taken after the bed is remade.
- Occupancy detection is weight-based only; it cannot tell who is in the bed, or whether the person is a patient or a visitor.
- Dashboard alerts need Wi-Fi and the MQTT broker; if the ward network drops, the dashboard stops updating, although the bedside LCD keeps showing local status.
- This is an academic prototype and is not intended to replace certified medical equipment, professional diagnosis or clinical decision-making.
- One node is needed per bed, so an 8-bed ward needs 8 nodes plus a broker host (design target).
- The call button only helps a patient who can reach and press it; it cannot help a patient who is unresponsive.
- The load cell senses weight on the frame, not vital signs; no heart rate, SpO2 or temperature measurement is included.
Frequently Asked Questions
Which controller and sensor does this project use?
An ESP32 DevKit at each bedside, paired with an HX711 load-cell amplifier and a bar-type strain-gauge load cell fitted under the bed frame. The HX711 is a 24-bit ADC with a selectable 10 or 80 SPS output rate, and the build uses 10 SPS with channel A at gain 128, which matches the Avia Semiconductor datasheet. A momentary push button serves as the patient call input, and a 16x2 LCD shows the bed state locally.
How does the system know whether a bed is occupied?
It weighs the bed continuously: the load cell under the frame flexes under the patient's weight, the HX711 digitises the tiny bridge signal, and the ESP32 compares the averaged reading against a settable 15 kg threshold to decide occupied or vacant. A tare reading taken on the empty bed is subtracted first, so the mattress and bedding do not count as a patient. If the reading stays below the threshold for 10 minutes, the bed is flagged vacant on the dashboard.
What happens when a patient presses the call button?
A call alert appears on the nurse-station dashboard immediately, with the bed number highlighted and the alert latched until a nurse acknowledges it. The button is debounced for 50 ms in firmware so one press registers as exactly one call, and the bedside LCD also shows the calling state. Acknowledging the alert on the dashboard clears it, and the event stays visible in the bed-detail panel.
Does the system work without Wi-Fi?
Partly — the bedside node keeps working on its own, but the dashboard does not. The node keeps sensing occupancy and showing the bed state on its local LCD without any network, and the call button still registers locally, so nothing is lost at the bedside during an outage. The nurse-station dashboard, the ward grid and the alerts need Wi-Fi and the MQTT broker, so a network outage freezes the dashboard view until the link returns. For a demonstration, a mobile hotspot can stand in for ward Wi-Fi.
What are the main limitations?
The system is a weight-based occupancy monitor, not a medical device. It cannot identify who is in a bed, cannot measure vital signs, and its readings drift when the bed is remade or the temperature shifts, so the tare must be re-taken after bedding changes. Alerts also depend on Wi-Fi and the MQTT broker. It is an academic prototype and must not replace nurse rounds or certified medical monitoring equipment.
Is this project suitable for a final-year project?
Yes, for Electronics & Telecommunication, Electrical and Computer Engineering programs. It combines embedded sensing with the HX711 and load cell, ESP32 firmware, Wi-Fi and MQTT messaging, and a working web dashboard, so the viva can cover hardware, firmware, networking and user interface in one build. The ward scenario also gives a clear problem statement and a demonstrable outcome.
Components & software requirements
- ESP32 DevKit (bedside node, Wi-Fi)
- HX711 load-cell amplifier (24-bit ADC)
- Bar-type strain-gauge load cell
- Momentary call button + 16x2 LCD with I2C backpack
- Arduino IDE with ESP32 core
- MQTT protocol with Mosquitto broker
- HTML, CSS and JavaScript nurse-station dashboard
- 5 V USB power per bedside node
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.