'i want to make home automation using enterance door autoamte light on off

I want to make home automation system for my final year project. One module of my project is light ON OFF on entrance, for that purpose I used IR sensor but the range of IR sensor is 20cm which is not suitable for my project, i need minimum 4 feet ranger to detect the human to turn ON OFF light. anyone suggest me to which sensor is best for that. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source