int conductivitySensorValue; //initialize an integer variable to hold the sensor reading
void setup() {
Serial.begin(9600); // start serial communications so we can print the reading out
}|
void loop() {
conductivitySensorValue = analogRead(A0); //get the integer representation of the sensor reading
float voltage = conductivitySensorValue*(5.0/1023.0); // put the data in terms of our voltage (5 volts)
Serial.println("The Conductivity is " + voltage); //print the current reading to serial port }|
This is my code. The last line highlights and displays the message in the subject. I have read several posts and none helped. Any help fixing this is appreciated. Thanks.