Door sensor switch: AE-WBEZDB-10S a single-pole touchless switch, otherwise known as a door switch, emits a beam of infrared radiation. As long as it sees its reflection, that is, "the door is closed", the circuit is disconnected and the light is turned off. At the moment of "opening the door", the sensor stops seeing the obstacle and turns on the circuit turning on the light.
Movement sensor switch: AE-WBEZDC-10S a bipolar touchless switch works on the principle of a regular switch. When the infrared beam is cut, the circuit will be closed and the light will be turned on. This state will remain until the radiation beam is cut again.