made some improvements for modularity by moving the interrupt into the implementation file and having the sensor checks return an unsigned int