Old house w/ 2 black wires replacing light switch with motion sensor switch single pole 4 wires
If the switch box ONLY has the two black wires in it, then its just a switch leg, with the main wiring run in the ceiling above the light fixture. Without additional wiring installing this device in this location may not be possible.