Fix Sensor Mode crash due to uninitialized var.

    Also:
    * Adding catch for get_vars from sensor, incase desired range
        is too large

    * Fix run_forever not setting regulation more in correct order.