hrs04 distance sensor not working

Hello, I'm trying to measure distance on a client and on a server on a ESP8266 (using ESPAsyncTCP) and the distance sensor is working on the client only with the same code of the server.
The server serial always displays 0 cm, what could be the problem? I'm using the NewPing library to control the hrs04.
Thank you for helping

Same as AWOL said in your other post. Post code and schematic.

Don't cross post.