#pragma once #include class GenericSensor : public TinySensor { SensorType sensorType = GENERIC; public: GenericSensor(short id) : TinySensor(id) { } void sendValueAndVoltage(int value) { sendInfo(ID(id) | VCC(readVcc()) | VALUE(value) | TYPE(sensorType)); } void sendValue(int value) { sendInfo(ID(id) | TEMP(value) | TYPE(sensorType)); } };