One is going to be a client with a sensor (probably ultrasonic to measure water level in the tank).
The second one is going to be a server that will receive data from the sensor controller over Wi-Fi and in turn control the relay where the pump will be connected.
https://sites.google.com/site/nodemcu12e/#zero