-- Manager01

sleep_delay = 5
low_threshold = 3000000
high_threshold = 3800000
mfe_side = 'front'

mfe = peripheral.wrap(mfe_side)
capacity = mfe.getEUCapacity()

while true do
    charge = mfe.getEUStored()
    if charge > high_threshold then
        print('Above threshold, stopping turbine ('..charge..'/'..capacity..')')
        turtle.suckDown()
    elseif charge < low_threshold then
        print('Below threshold, starting turbine ('..charge..'/'..capacity..')')
        turtle.dropDown()
    else
        print(charge..'/'..capacity)
    end
    os.sleep(sleep_delay)
end