New version of device file using push buttons

This is a new version od the device code that uses push buttons instead a termistor