I was trying to make a thermostat with bluetooth controlled trigger point but I have encouraged with some problems.
I can't send to digit at the same time to arduino .( it receives 2 and 0 individually not 20)
Neither int nor float made any difference.
The goal for this forum is helping members that want to learn and grow in programming. It's not free gift fixing toys shop.
IDE examples, Arduino/reference are great sources to find out things quickly instead of waiting for replies.
Turns out there is a different function to fullfill my project
.parseInt
I am pretty sure all of the " go check this stuff " replayers didn't know that the tutorial they sent to me doesn't mention this basic function to make faster codes.
Funny thing , I don't need a fast code and the tutorial was way beyond my both knowledge and requirement to make this project
The basic parseInt() and parseFloat functions in the Serial class don't work very well. They are very limited, and are blocking, unreliable and fail with timeouts. But if that works for you, great!
The reason that I did kot mention parseInt() is not because I don't know about it. I know about readString(), too, but I know enough to not recommend it either.