Disclosure: We earn a commission from some links on this page. Details
Know if the car is in the garage
A distance sensor on the wall sees if the car is there.
Drafted with AI assistance, fact-checked and approved by RackedPrice.
- Mount the distance sensor on the garage wall, facing where the car parks.
- Connect it to a Pi with a long Qwiic cable.
Install SparkFun's library for it and run the example. Note the distance with and without the car.
~/sensors/bin/pip install sparkfun-qwiic-vl53l1xSend "car home" or "car away" to Home Assistant over MQTT.
Same setup as the room sensor how-to. Pick a distance halfway between your two readings. Shorter means the car is there.
Ready for a bigger build?
Our project guides walk through a whole build, with a parts list priced by our tracker.
What you'll need
- Distance sensor VL53L1X (Qwiic)Check price at SparkFun
- Qwiic Cable KitCheck price at SparkFun
SparkFun doesn't share prices with us, so check the price on its page.
More make and tinker how-tos
Set up your first Raspberry Pi
A tiny computer for learning, projects and small home servers.
30 minutesPlug sensors into a Pi (no soldering)
SparkFun's Qwiic cables click in one way only. No soldering, no wiring mistakes.
20 minutesMake a room temperature sensor
See a room's temperature and humidity in Home Assistant, from a sensor you put together.
1 hour