sensors
- analog: LDR, thermistor, potentiometer
- digital: I²C/SPI parts (IMUs, temp, light, pressure)
- on/off: limit/reed switches, PIR motion
try this
make a divider (sensor + fixed resistor), read with ADC, then map counts → units. caution
I²C wants pull-ups; most modules already have them. avoid double pull-ups on mixed boards. fact
analog sensors feed an ADC; digital sensors talk via I²C/SPI/UART. check voltage and pull-ups. try this
log raw values first; then scale and filter.