added example 3: actuation based on sensor input