Sensor values do not change

The code runs but readings stay stuck.

What it usually means

A wiring, pin, power, or setup assumption needs checking.

First checks

Check 3.3V, ground, signal pin, and raw value printout.

Common fixes

Rewire one connection at a time and test raw values before thresholds.