I created a real-time graph on Processing that tracks weather data like Humidity, Temperature, and Pressure. Yet, it seems that my graph begins with a steep spike and then corrects itself. How do I remove the initial spike in my graph? Does anyone have good ideas on how to do this? Thanks.
Below I posted my code for reference.
Here is my code:
import processing.serial.*;
Serial myPort;
String inBuffer = "";
float Humidity = 0;
float Temperature = 0;
float Pressure = 0;
int dataCount = 1;
int loopCount = 0;
boolean first_comm = true;
float[] dat = new float[625];
float[] Humidity_array = new float[625];
int[] Temperature_array = new int[625];
int[] Pressure_array = new int[625];