is potentially too scary for smaller kids, so I've designed the coffin to work in three modes:
- Green: No lid opening or skeleton rising
- Amber: PIR detector cause lid to rise. No skeleton.
- Red: PIR causes lid to rise, skeleton rises if doorbell pressed.
Here is a StarUML state chart of the coffin state machine: