Solar floodlight with PIR sensor