Refractor code toggle power using timer

The sensor power pins are now toggled using timer instead of delay. The
loop() function is now much cleaner and ready for multithreading.