Hi guys. I have a problem with paresInt. the problem is Decimal numbers not showing correctly. For example, instead of displaying the number 20070.84, it incorrectly displays the number 8420070.
The sketch looks fine. I don't see any reason why the output would not be either "0.00" for a timeout or the floating-point number you receive from 'periodavg'.
What does the data stream from 'periodavg' contain? How often are the values sent? What characters are between numbers?
if you were not adding a separator and kept sending floating point numbers like 20070.84 the receiving arduino would see an input as 20070.8420070.8420070.8420070.8420070.8420070.84
it's then easy to get in trouble decoding this