You at least need a drone with camera for it. You would need to implement some object recognition on the images transmitted by the drone
Now, learn to code it.
Humans are still better at parking spot recognition than $35 hardware.
Of course you'll need a camera with a time machine so you know the spot will be free when you arrive, and not just when you set out.