Working sensor pulse count. Not yet tested with real sensor
Removed enable interrupts from configure_sensor

put into sensor.c