user51417: I want to have automatic control for my pump, wirelessly. 
A transmitter unit fitted in the water tank would sense the water level and transmit the data to a receiver unit attached to the pump starter to turn it off/on.
Also an override unit would allow me to turn the pump on/off according to my will and will also display the water level.
How do I write the code for the wireless transmission part ?

user39409: First of all I would recommend to play around with Web Server example to understand how the server hosting works. Also, the ip adders is assigned randomly to the ESP so you definitely need to write a rule in your WiFi router in order to assign a static ip to the ESP. But you can try to use mDNS to assign a name to your esp. For example http://pump.local/path. You can find some instructions here. If you are looking for simplicity you can use Blynk. It is a fully automated and free service that allows you to control you ESP from anywhere where there is a internet connection. And it also can display different variables such as the water level in your case.

51417: <p>I want to have automatic control for my pump, wirelessly. </p>

<p>A transmitter unit fitted in the water tank would sense the water level and transmit the data to a receiver unit attached to the pump starter to turn it off/on.</p>

<p>Also an override unit would allow me to turn the pump on/off according to my will and will also display the water level.</p>

<p>How do I write the code for the wireless transmission part ?</p>
 39409: <p>First of all I would recommend to play around with Web Server example to understand how the server hosting works. Also, the ip adders is assigned randomly to the ESP so you definitely need to write a rule in your WiFi router in order to assign a static ip to the ESP. But you can try to use mDNS to assign a name to your esp. For example <a href="http://pump.local/path" rel="nofollow noreferrer">http://pump.local/path</a>. You can find some instructions <a href="https://techtutorialsx.com/2016/11/20/esp8266-webserver-resolving-an-address-with-mdns/" rel="nofollow noreferrer">here</a>. If you are looking for simplicity you can use Blynk. It is a fully automated and free service that allows you to control you ESP from anywhere where there is a internet connection. And it also can display different variables such as the water level in your case.</p>
