The purpose of the device is to notify the user when the door is open or closed, or if an intruder was trying to force the door or the they left the door opened.
I started with the PCB. I used KiCAD to design the board.
Then I converted the image of the board in rml file to be used in monoFab machine.
After designing the PCB I printed it and solderd all components.
Designing the enclosure of the Door state, I started with creating a rectangle cube of 56x36x20 mm.
I pocketed the rectangle where the circuit will be enclosed.
I pocketed a slot on the the top side of the cover for RGB LEDs to display the state of the detector.
Finally I added some pockets to help in snapping the top and bottom enclosures.
The remaining thing is to design the bottom part of the enclosure, which is to be combined with top part.
Also I added the snapping parts for closing it with the top part.
This is the image of the printed box.