A simple Arduino Sensor/map wrapper
#include <Sensor.h>at the top of your file- Instansiate with
Sensor sensor_name(pin, min_voltage, max_voltage, min_value, max_value);i.e.Sensor temperature(A0, 515, 240, 70, 98); - Use the mapped value by using
sensor_name.value()(or for the example,temperature.value()