Arduino DHT11 sensor interfacing

hi..I've interfaced a dht11 sensor with an arduino uno, & have plotted the the graph on serial plotter.......bt I don't know how to get number of peaks within a minute.I was thinking of adding the sensor values into an array, bt I don't know how to do that.....can anybody help? This is the code I've used

#include <dht.h>

#include "DHT.h"
#define dht_apin A0 // Analog Pin sensor is connected to

dht DHT;

void setup(){

Serial.begin(9600);
delay(500);//Delay to let system boot
Serial.println("DHT11 Humidity & temperature Sensor\n\n");
delay(1000);//Wait before accessing Sensor

}//end "setup()"

void loop(){
//Start of Program

DHT.read11(dht_apin);

Serial.print("Current humidity = ");
Serial.print(DHT.humidity);
Serial.print("% ");
Serial.print("temperature = ");
Serial.print(DHT.temperature);
Serial.println("C ");
Serial.println(DHT.temperature); // Send the Signal value to Serial Plotter.
Serial.print("Find peak in the serial plotter");

delay(2000);//Wait 2 seconds before accessing sensor again.

//Fastest should be once every two seconds.

}// end loop()

Please use code tags when posting code.

You can use my statistics class to solve your question. YOu just add measurements to it and you can ask for maximum and minimum.

have a look at the sample sketches.

The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.

So, how many peaks will there be in one second?

So, how many peaks will there be in one second?

lol