package controller func SelectMode(sensor int) int { if sensor > 80 { return 2 } return 1 }