I'm trying to get an alarm system to work, but when I try this code I'm getting an error that os_alarm does not exist in /boot/04_component.lua
local component = require("component")
local sides = require("sides")
rs = component.redstone
alarm = component.os_alarm
yes = true
while yes do
if rs.getInput(sides.south)>0 then
alarm.setAlarm("klaxon2")
alarm.setRange(1-60)
alarm.activate()
else
alarm.setAlarm("klaxon2")
alarm.setRange(1-60)
alarm.deactivate()
end
end