renamed sensor value function