change type of time variable to unsigned long
add default constructor for Sensor
add constructor with default interval to DigitalSensor
create array of Sensors by size