Demo
The problem
As factories fill up with automation, safety has to keep up, and one risk that often gets overlooked is the walk-in freezer, where a worker can be trapped inside.
How it happens
- The door can fail, because worn latches jam, moisture freezes the seals shut and emergency releases can be broken, missing or frozen over.
- Nobody may realise a person is still inside, and experienced workers can get careless.
Why it is dangerous
- The cold causes hypothermia, which brings on confusion and then unconsciousness.
- A sealed freezer can run low on oxygen, which can lead to asphyxiation.
- Panic and attempts to escape lead to falls and other injuries.
- Without a timely rescue, being trapped for a long time can be fatal.
Being trapped also causes panic, especially for people with cleithrophobia, the fear of being unable to escape. ELEC-F is meant to shorten the time someone is stuck and let them know help is coming.
Goals
- Stop workers from being stuck inside a factory freezer.
- Keep in contact with anyone who does get trapped and reassure them.
- Work reliably in a cold, damp, sealed room.
How it works
While the door is open, you set a time limit on the M5Stack, and closing the door starts the timer. If the timer runs out while someone is still inside, the alarm goes off.

Set the timer
When a worker walks in, the PIR sensor picks up their body heat and movement and the ToF sensor reads the door as open. You then set on the M5Stack how long the door may stay shut.
The system has four parts that run together:
- The timer is set on the M5Stack while the door is open and starts when the door closes.
- The door sensor is a time-of-flight (ToF) sensor that measures distance to tell whether the door is open or closed.
- The presence sensor is a PIR sensor that detects body heat and movement to tell whether someone is still in the room.
- The alarm flashes the RGB unit and sounds the buzzer if the door stays closed past the limit with someone inside.
We chose ToF and PIR sensors because both keep working below freezing.
Hardware
Everything is M5Stack, which made it quick to prototype and easy to swap modules. Two M5Stack Fire controllers run the logic and the display, and a Mini Hub unit splits the Fire’s single port so every sensor has somewhere to plug in.







Logic
The flow chart below shows the full loop the M5Stack runs. The buttons set the time limit while the door is open, and once the door closes, the timer runs and the sensors decide what happens next.


Prototype
We made the freezer and its door out of cardboard to test the sensors and the timing end to end before thinking about a proper enclosure.







