These are LED bulbs with a built-in PIR motion sensor, so they fit into a regular E26 socket and do the switching for you. During the day they stay off, and once the room or porch goes dark they wake up when they pick up movement nearby. After a short stretch with no motion they shut off again, which saves power and means you never have to remember to flip a switch on the way to the car.
The bulbs are at their best in places people walk through quickly, like hallways, stairs, a garage entry or a front porch. They work indoors and outdoors, but the fixture has to be open and facing downward with the sensor exposed. If your light sits inside an enclosed cover or a recessed can, these will not work properly, so check your fixture before you buy a pair.