Sensor Thresholds and Alerts

Advanced

Combine multiple sensors in one program. Read distance and light level, apply compound conditions, and trigger different buzzer alerts depending on which threshold is crossed. The full data → decision → action pattern.

25 min6 steps
DistanceLight SensorMulti-sensorThresholdsBuzzerAdvanced
0 of 6 steps

Step 1 of 6

Connect your board

Power on your Beaver Board — the OLED will show a PIN code. Click Connect in the toolbar, choose Connect via Bluetooth, and select your board. If it's your first time, enter the PIN shown on the screen.

This tutorial uses the HC-SR04 distance sensor (GP16/GP17) and the PT19 light sensor (GP26) — no extra wiring needed.