Removed everything, added loop to monitor analog input.