Door sensors detect door position (i.e., open or closed) based on the precise gap between the magnet and the reed switch.
This is a breadboard friendly breakout board for the Maxim MAX30105 reflectance, particle, and pulse ox sensor. This library should work with other MAX3010x sensors including the MAX30102, MAX30101, ...
The ESP32 keeps finding new jobs in my house.
I didn't expect to love it, and it has a learning curve, but the possibilities are endless.