I am trying to log my temperature sensor (LM35) values to Excel sheet through PLX-DAQ.
But I couldn't log my data. Since I am new to this topic I need a help in this. Please help me.
I can view the values in Serial Monitoring but I couldn't get that in PLX-DAQ.
I have attached the screen, that showing connected but there is no logged datas.
my code is here:
const int sensor = A1; // Assigning analog pin A1 to variable 'sensor'
float tempc; //variable to store temperature in degree Celsius
float tempf; //variable to store temperature in Fahreinheit
float vout; //temporary variable to hold sensor reading
void setup()
{
pinMode(sensor, INPUT); // Configuring pin A1 as input
Serial.begin(9600);
}
void loop()
{
vout = analogRead(sensor);
vout = (vout * 500) / 1023;
tempc = vout; // Storing value in Degree Celsius
tempf = (vout * 1. 8) + 32; // Converting to Fahrenheit
Serial.print("in DegreeC=");
Serial.print("\t");
Serial.print(tempc);
Serial.println();
Serial.print("in Fahrenheit=");
Serial.print("\t");
Serial.print(tempf);
Serial.println();
delay(1000); //Delay of 1 second for ease of viewing
}
