The automatic turning on of lights when a door opens is a common feature in modern homes, and it can be achieved using various technologies, such as motion sensors or smart home systems. Here are a few ways you can turn on lights when a door opens:

Motion Sensors: Install motion sensors near the door and connect them to the lights you want to turn on. When someone enters the room, the motion sensors will detect the movement and trigger the lights to turn on.

Smart Home Systems: If you have a smart home system, such as Amazon Alexa or Google Home, you can set up routines that automatically turn on the lights when a door opened.

Automated Switches: You can install automated switches that turn on the lights when the door is opened. These switches use a magnetic sensor to detect the door opening and trigger the lights to turn on.

Door Switch: Install a door switch. That connected to the lights. When the door opens, it will activate the switch and turn on the lights.

Regardless of the method you choose, make sure to choose a system. That is easy to install and use, and that will provide reliable and efficient performance. When setting up the system, make sure to follow the manufacturer’s instructions and guidelines to ensure proper installation and operation.

If you want lights to turn on automatically when a door opens, you can install a motion sensor light switch. This type of switch uses a motion sensor to detect. When someone enters the room and turns the lights on automatically. When the door is closed and there is no motion detected, the lights will turn off automatically. Here’s how you can install a motion sensor light switch:

Turn off the power: Before you begin the installation. Turn off the power to the circuit by flipping the switch on the circuit breaker or fuse box.

Remove the old switch: Use a screwdriver to remove the screws. That holds the old switch place and disconnects the wires from the switch.

Connect the motion sensor switch: Connect the wires from the motion sensor switch to the wires in the wall according to the manufacturer’s instructions. Make sure the connections are secure and tight.

Mount the switch: Carefully attach the motion sensor switch to the wall using screws, making sure it is level and secure.

Turn the power back on: Turn the power back on by flipping the switch on the circuit breaker or fuse box.

Test the switch: Test the motion sensor switch by opening the door and verifying that the lights turn on automatically. Adjust the sensitivity and time delay settings as needed.

Note: Always follow the manufacturer’s instructions when installing a motion sensor light switch, and seek help from a professional electrician if you are not comfortable with the installation process.