ESP32 Wireless Throttle (PWM) - Strange Behavior

For the serial debug see this post
The schematic does not represent your circuit so not sure how to read it.

Also the value from the ( 12 bit ) ad converter is 0-4095, while the variable 'data' you are sending is 8 bit ( 0-255 ), so you are silently discarding the high byte didn't notice you are using 8 bit resolution.