The boot sensor serves an important function – it lets you know if the boot is open! You’ll use a momentary switch for this purpose. If so desired, you could expand or change this project to encompass car doors or even a bonnet sensor.
Hardware Configuration
Remember to disconnect the Pi’s power supply when connecting or disconnecting any circuits.