Inspiration

Many seniors in Singapore live alone. Their biggest fear is not a dramatic emergency. It is a quiet one: a fall in the bathroom, or feeling too unwell to get out of bed, with nobody noticing for hours or days.

Today's solutions ask the senior to do something. They have to wear a pendant, press an alarm, carry a phone or learn an app. These fail exactly when they're needed most: the pendant is on the bedside table, the phone is flat, or the person can't reach the button.

We asked a different question: what if the senior didn't have to do anything at all? Everyone has a routine. Mdm Tan wakes up, makes her morning tea and goes to the bathroom a few times a day. When that routine suddenly breaks, that is the signal. And the people best placed to respond are often not an ambulance but her kampung: the neighbour two doors down, a volunteer and her family.

What it does

KampungPing places a few small, passive sensors around a senior's home and watches for the everyday activity that shows they're OK:

Sensor Where What it tells us
🛏️ Button Bedside She's awake (and "I'm OK" during an alert)
☕ Tilt switch Kettle Morning tea made, so her routine is normal
🚽 Infrared tracking sensor Bathroom door Bathroom trips, an early sign of infection or dehydration
📞 Touch pad Beside her chair "I'd like someone to call me"

All alerts go to a Telegram group: her Care Circle. It escalates step by step instead of jumping straight to an emergency:

  1. Normal day: "🛏️ Mdm Tan is up" → "☕ Morning tea made. Routine normal ✅"
  2. Routine broken: she wakes up but there's no kettle use in the expected window → 🟡 Alert with a [🙋 I'll check on her] button for neighbours and volunteers.
  3. Nobody responds: 🔴 Escalation to family: "please call her now. If no answer, consider 995."
  4. One tap coordinates the response: the first person to tap posts "🙋 Jerry is going to check on Mdm Tan. Others can stand by," so five people don't all rush over and nobody is left assuming someone else went.
  5. She can say she's OK herself: pressing her bedside button clears the alert.
  6. Wellness notes: several bathroom trips in a short time trigger a gentle "worth a check-in call" note, not an alarm.
  7. Asking for a call: tapping the touch pad posts "📞 Mdm Tan would like someone to call her" with an [📞 I'll call her] button. Loneliness is a risk too.

Anyone in the circle can send /status for a summary of the day.

Privacy by design: no cameras and no microphones. The system only knows that a door opened or the kettle tipped, never what she looks like or says.

How we built it

  • Hardware: an ESP32-S3-DevKitC-1 microcontroller with modules from the hack kit: a button, a tilt switch, a TCRT5000 infrared tracking sensor and a metal touch sensor. Everything runs on 3.3V and is wired on a breadboard inside a model of a one-room flat.
  • No server: the ESP32 talks directly to the Telegram Bot API over HTTPS using WiFi. There's no cloud backend or app to maintain, so the whole system is one small board plus a Telegram group families already know how to use.
  • Firmware (Arduino C++):
    • Interrupts on every sensor pin, so no event is missed while the board is busy sending a message.
    • Learned resting state: at power-on the code records each sensor's normal level (door closed, kettle upright), so the same code works with sensors that are active-high or active-low.
    • Debounce, re-arm and cooldown: a sensor must settle back at rest before it can count again, so one kettle pour or one bathroom visit is one event.
    • A state machine for the day: waiting to wake → waiting for routine → alert → escalated → someone checking → all good.
    • Inline Telegram buttons with callback handling, so carers respond with one tap.
  • Demo timings: the "no kettle" window and escalation are 60 seconds so we can show the full story live. In real use they'd be around 2 hours and 15–30 minutes, and they're configurable.

Challenges we ran into

  • Choosing the right sensor for the bathroom door. We started with the kit's infrared "Avoid" obstacle sensor, but at 3.3V it didn't react to a hand at all. It only flickered when we pointed a phone camera at it, whose infrared confused the receiver. With no magnet for a reed switch, we switched to the TCRT5000 tracking sensor facing a white patch on the door, which gave a clean, reliable door-open signal.
  • A noisy tilt switch. Our first test log showed a single kettle tilt producing about 130 on/off changes as the metal ball bounced. We wrote re-arm and cooldown logic so one pour counts as exactly one event.
  • Telegram group IDs. Our first group was a Telegram supergroup, so its ID needed a -100 prefix that the web address didn't show. We debugged it by querying the Bot API directly.
  • Campus WiFi uses enterprise login, which the ESP32 can't easily join, so the board runs from a 2.4 GHz phone hotspot.

Accomplishments that we're proud of

  • A working end-to-end prototype: real sensors → ESP32 → Telegram → one-tap human response, with no server in between.
  • Escalation that brings in the community first, then family, then emergency services, instead of sending every alarm straight to 995.
  • A design where the senior never has to wear, charge, carry or learn anything.

What we learned

  • Reliability lives in the details: debouncing, resting states and what happens while the board is busy matter more than the happy path.
  • Hardware choices have to be tested, not assumed. A sensor that looks right on paper may not work at the voltage you have.
  • The most useful message is often not an alarm, but a coordinated nudge to the right person at the right time.

What's next for KampungPing

  • Learning each senior's own routine over a week instead of fixed time windows, so alerts adapt to early risers and late sleepers.
  • Wireless sensor nodes using ESP-NOW, so each room's sensor runs on a battery and reports to one hub, with no wires through the flat.
  • Integration with Active Ageing Centres and volunteer networks, so the care circle can include trained befrienders as well as family.
  • A weekly wellness summary for families, such as sleep, bathroom trend and how often she asked for a call, to spot gradual decline early.
  • Pilots with a few seniors and their families to tune what counts as "unusual" and how many alerts carers actually want.

Built With

  • arduino
  • arduinojson
  • breadboard
  • c++
  • embedded-systems
  • esp32
  • esp32-s3
  • https
  • iot
  • ntp
  • sensors
  • tcrt5000
  • telegram
  • telegram-bot-api
  • universaltelegrambot
  • wifi
Share this project:

Updates

Submission history