1. Most take D or C cells
A battery-powered motion light usually takes four D cells, and smaller ones take AA or AAA. The size is moulded into the holder, and a few lights take a pack that plugs in.
2. Why they run flat
The sensor wakes the light every time it detects movement, and each flash of the lamp takes a good amount of power. A light set too high catches every car and every neighbour, so it wakes constantly and empties the cells in a few weeks.
3. Turn the sensitivity down
Most lights have a switch for range and one for how long the light stays on. Setting the range lower and the timeout shorter is the single biggest thing you can do to make the batteries last.
4. The dusk sensor matters too
A light that never sees darkness keeps its sensor powered and never switches off properly. If the light stays on all day, check that the photocell is not covered by a sticker, a leaf or a spider web.
5. Replace the whole set at once
A set with one old cell and three new ones can leak, and the cells sit in the same damp, warm place. Change them together, and write the date on the back of the light.