Using PLX-DAQ to read data from Arduino Uno not getting the readings

adithyaadithya Posts: 1
edited 2019-02-28 - 04:54:27 in Microcontrollers
i am trying to get reading (Temperature and humidity) to excel sheet but the readings aren't printing on the excel.only reading is giving 0.
#include <dht.h> 

dht adithya;
void setup() {

  
    Serial.begin(9600);

    Serial.println("CLEARDATA");
    Serial.println("LABEL,Date,Time,Temperature C,Humidity %");

 
}

void loop() {
 
float val = adithya.read11(7);
  
 float t = Serial.readStringUntil(10).toInt();
 float h = Serial.readStringUntil(10).toInt();
  Serial.println( (String) "DATA,DATE,TIME,"+t+","+h)   ;

  Serial.print("Temperature =");
  Serial.print(adithya.temperature);
  Serial.print("\t Humidity =");
  Serial.println(adithya.humidity);
  delay(200);
  
  delay(50);      
}


please help me with this.
In my serial monitor getting the values but not printing in the excel sheet
Sign In or Register to comment.