# File lib/commands/touch_sensor.rb, line 42
  def logic
    case @action
      when :pressed
        value_scaled > 0 ? true : false
      when :released
        value_scaled > 0 ? false : true
      when :bumped
        value_scaled > 0 ? true : false
    end
  end