modified code to panstamp battery board devices to work with other sensors.