Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- tank = sensor.wrap("top")
- tankDetails = tank.getTargetDetails("-2,1,-1")
- tankCapacity = tankDetails["Capacity"]
- print(tankCapacity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement