The example also contains a commented line //#define REMOTEXY__DEBUGLOG . If you uncomment it, the RemoteXY.h library will be configured to output debug information to the Serial port at a speed of 115200.
The debug output might give some insight into what is going wrong. Try this:
Add the following line to the top of your sketch:
#define REMOTEXY__DEBUGLOG
Comment out these lines in your sketch:
Serial.print(" V = ");
Serial.println(analogRead(sensorPin));
ⓘ The reason for doing this is that, since this code is configured to print to Serial on every single execution of loop, it will flood the Serial Monitor with output and make it difficult to see the debug output from the RemoteXY library.
If it is not already open, open the Arduino IDE Serial Monitor.
Upload the sketch to the ESP32 board.
Then watch Serial Monitor for any useful information.
I don't use RemoteXY but I see you print to the Serial monitor by directly reading the value again instead of looking at the actual value you stored with dtostrf().
try printing RemoteXY.text_1 instead to see what was set.
I'm guessing the "sometime" is the cause of the problem. The loop function is typically executed many times per second. If the value is 0 the majority of the time, then you won't even see the non-zero values in the display on the iPhone.
Please provide details about your project. What exactly is the sensor you have connected to pin 33 of the Arduino board? Is it expected that the sensor will mostly output 0 V, and only briefly and occasionally output higher voltage?
Now screen on the iphone is alive but the numbers are much different than on serial port. Serial port = 0 - 3300
iPhone = 50 to 100 and jump 12 500 to 14 400