From 5e81fecb780b3b1e276fd9c3f8a177470744e362 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Mon, 9 Oct 2023 18:12:16 +0200 Subject: [PATCH] Fixed sensor usage --- src/measurer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/measurer.py b/src/measurer.py index 71dc1d2..d530ecd 100644 --- a/src/measurer.py +++ b/src/measurer.py @@ -7,6 +7,7 @@ DELAY_SECONDS = 1 sensor = VL53L1XSensor() +sensor.open() while True: sensor.setDirection(Directions.INSIDE)