Implemented different architecture for running simple queries.
Instead of minBattery, minLight and minProximity
Use getMin and getMax with switch statement on sensorID.