Changed power values and added alarm into while true loop