Hey, sorry got bombarded with work...
yes I am starting to understand, but it is all still quite blurry...
You are the one sitting in front of the hardware. Look at it. What pins is the pH probe connected to?
the pH probe itself is connected to the stamp: GND-->GND, Prb-->Prb.
the Stamp is connected RX-->Pin2, TX-->Pin3, GND-->GND and VCC-->5V.
It is not clear to me that this is happening in that code.
The problem is that I seem to understand what is going on, but at the same time, when I try to do any slight modification (obviously apart from renaming "myserial" to something more relevant) I hit a brick wall...
Isn't there an easier way to read the sensors and have that value stored as "new val" so that the arduino can run an "if" statement?