Door sensor

This was my first project. It is runned with ESPHome by a D1 Mini (based on ESP8266) which is integrated to my Home Assistant through WiFi. The sensor is a hall effect sensor and responds to magnetic fields. In this application the board will send a notifcation to my mobile every time the magnet is moved. The 3D models were developed in Onshape.

The main part.
The sensor

Images

Picture of the setup
Overview
Picture of the setup without the lid.
Without the lid
Picture of the finished battery pack.
Backside of the PCB prototype