Added calculating function for sensor 2, not valid equation, just uses equatiion for node 1 sensors
updated calcuations for Tim's sensors, fixed a couple of compiler warnings