Car Door Lock
When the car door is closed, the latch actuates the microswitch to close it, sending a signal to the Body Control Module (BCM), which then turns off the reading light, activates the automatic locking system, and so on.
When the car door is opened, the latch leaves, causing the microswitch to open, and the BCM receives the signal to turn on the reading light and display a door open warning.
When the central locking system locks the car, the latch actuates the microswitch, sending feedback to the BCM to confirm successful locking.
When the central locking system unlocks the car, the latch retracts triggers the microswitch to send feedback to the BCM, which then allows the door to be opened.
When the child lock is activated, the mechanical structure actuates the microswitch, sending a signal to the BCM to display that the child lock is engaged. When the child lock is disengaged, the state of the microswitch changes, and the BCM updates the display status.