Creative Hardware
The Twelve Lines That Stop Your Installation Dying When a Sensor Falls Off
An I2C sensor that disconnects takes down the whole program, because the read raises and nothing catches it. A try/except around the read turns a dead installation into one that keeps running and recovers when the cable is reseated. This is a two-minute lesson with a disproportionate payoff.