This is the kind of thing that Aquacomputer's Aquasuite is quite good at. The program has a "playground" wherein you can manipulate sensor data - you can add, subtract, perform statistical calculations, logic functions, apply filters, compare to constant values, etc. Alerts can be based on the...