This PR addresses the issue where the current fill sensors are being read in a while loop in the main program loop, this causes a blocking effect on the main program loop which is not ideal.
The changes here introduce the use of Timer1 and attaching an interrupt to the timer to check the fill sensors in the background thus freeing up the main loop for other real-time functionality.
It also refactors the main program loop to utilise program states to allow for better control and execution of the different states of operation.
This PR addresses the issue where the current fill sensors are being read in a while loop in the main program loop, this causes a blocking effect on the main program loop which is not ideal.
The changes here introduce the use of Timer1 and attaching an interrupt to the timer to check the fill sensors in the background thus freeing up the main loop for other real-time functionality.
It also refactors the main program loop to utilise program states to allow for better control and execution of the different states of operation.
Closes #3