Using arduino code for esphome wemos d1 mini

currently im using a arduino nano that my dad and i have setup for controlling a water pump for my wellhouse, im using a slow sand filter and using a arduino nano with a SSR to turn on and off a pump, to control the water level in the sand filter im using 3 stainless bolts that messure conductivity to turn on the pump. my dad was really good with this stuff but has passed away, now ive been playing around with esphome with a few diffrent esp8266 boards, and im trying to use the same setup but with the wemos,