Coding Troubleshooting for Ultrasonic Sensor and Water Pump

This one is odd, as the first parameter should actually be a string and not an integer (which `int relay = D1;´ is).
There should be an error message about this.

This also poses a problem since cm should be double but is int - there should be an error message about this too.

Post the error messages will help more than this