You can do this now by hanging a tennis ball on a rope, hanging it from the garage ceiling, and putting a tilt sensor either on the rope or inside the tennis ball.
A lot of people use the hanging tennis ball anyway as a marker to tell the driver where to stop the car as theyāre coming into the garage. This just gives you a networked indicator that the car is there.
And there was a community member who built a car detector, let me see if I can find that one.
Here you go: this one is a lot more complicated than just the tilt sensor tennis ball method, though.