#pragma once #include #include class TempSensor: public TinySensor { public: TempSensor(short id, short senderPin) : TinySensor(id, senderPin) { } unsigned long sendTempAndVoltage(int temp) { unsigned long value = ID(id) | VCC(readVcc()) | TEMP(temp) | TYPE(6); sendInfo(value); return value; } };