local c = peripheral.wrap "left"
while true do
local l = c.getRFStored() / c.getRFCapacity()
redstone.setAnalogOutput("right", l * 15)
sleep(0.1)
end