

User avatar
By seaurchin
Pablo2048 wrote:Every call to read_sensor_data::analogValues() return pointer to newly allocated int[4] array, so you have to free the memory when you are done with the values from this array so take a look at this .

Thank you Pablo2048

used delete ptr;
seems to have fixed , but I am not getting anything not even any Serial.print in the serial monitor.