3.4 Safe State

In q fault or malfunction occurs, the program will enter a Fault state that indicates the device has failed or malfunctioned. In the fault state, interrupts are disabled, the sensor heater switched off, and the microcontroller periodically prints “SYSTEM FAULT” to the UART output every 10s while outputting a tone pattern from the buzzer and blinking the LED.