MarkT:
For simple scaling map() is unnecessary:Serial.println(analogRead(0) * 14.0 / 1024, 1);
Thanks for that...seems a lot easier to understand the simpler way (well sort of)
void setup() {
Serial.begin(9600);
}
void loop() {
int val = analogRead(0);
Serial.println(analogRead(0) * 14.0 / 1024, 1);
can you explain what the 1 means at the end in
Serial.println(analogRead(0) * 14.0 / 1024, 1);
please
I intend eventually connecting a gsm module to this so upon sending the text message "PH" I am hoping it will reply with something like "PH = #.#"
How hard would you say this is to do? As I can see it in serial monitor I am asuming you point the GSM modem to a specific location and the modem translates the command to read from that location or similar?
Thanks