When the LDR sensor detects a change in illuminance that is
large enough for the voltage in P2.1 to trigger an interrupt request,
the MCU is waken up, measures B , calculates the change
with respect to a stored baseline value (the vertical component of
the Earth’s magnetic field in the absence of any car) and checks
whether this change exceeds or not a given threshold