The entire 10+ years we have lived in our house, our porch light has not functioned very well. When we flip the switch, the light comes on about 15% of the time. We eventually stopped flipping the switch. We live on a major street. It is not at all dark on our front steps. Calling an electrician to fix the problems was very far down on the list.
I contemplated installing a motion sensor light, but that was also quite far down on the list. Luckily, technology caught up with my needs.
The light that is coming from that porch light is an LED bulb that has a motion sensor built in! All I had to do was screw the bulb in, flip on the light and wait for it to get dark. It now turns on and off automatically. This was the best $12 I have ever spent.