Hi,
I've just discovered how to import data from the Arduino Uno with dht11 temp sensor into a vector and plot a graph using the code below:
arduino = serial('COM4');
fopen(arduino);
x = 1:1:60;
for i=1:length(x)
y(i) = fscanf(arduino, '%d');
end
fclose(arduino);
% Plot data from arduino
plot(x,y)
I have labeled the X axis Time (Seconds), but is this true? Does anyone know how exactly the data from the Arduino is being extracted? And if its not in seconds, how is this possible?
Also could anyone point me in the right direction on how to actually see the temp sensor data live on the screen. I have seen it done on You Tube, but nobody actually shows you what to do.
Thanks in advance!