% mode (DeviceMode.{Type}): Sensor mode in which the value will be read. By default, mode is set to *DeviceMode.Default.Undefined*. See also :attr:`type`. *[WRITABLE]* |br| Once a physical sensor is connected to the port *and* the physical Brick is connected to the EV3-object, the allowed mode and the default mode for a Sensor-object are the following (depending on the sensor type):
% mode (DeviceMode.{Type}): Sensor mode in which the value will be read. By default, mode is set to *DeviceMode.Default.Undefined*. See also :attr:`type`. *[WRITABLE]* |br| Once a physical sensor is connected to the port *and* the physical Brick is connected to the EV3-object, the allowed mode and the default mode for a Sensor-object are the following (depending on the sensor type):
%
% * Touch-Sensor:
% * DeviceMode.Touch.Pushed *[Default]*
% *Output: 0: not pushed, 1: pushed
% * DeviceMode.Touch.Bumps
% *Output: n: number of times being pushed
% * Ultrasonic-Sensor:
% * DeviceMode.UltraSonic.DistCM *[Default]*
% *Output: distance in cm
% *Note: actively creates ultrasonic sound
% * DeviceMode.UltraSonic.DistIn
% *Output: distance in inches
% *Note: actively creates ultrasonic sound
% * DeviceMode.UltraSonic.Listen
% *Output: distance in cm
% *Note: ONLY listens to other sources (sensors) of ultrasonic sound
% * Color-Sensor:
% * DeviceMode.Color.Reflect *[Default]*
% *Output: value in range 0% to 100% brightness
% * DeviceMode.Color.Ambient
% *Output: value in range 0% to 100% brightness
% * DeviceMode.Color.Col
% *Output: none, black, blue, green. yellow, red, white, brown
% * Gyro-Sensor:
% * DeviceMode.Gyro.Angular *[Default]*
% * DeviceMode.Gyro.Rate
% *Output: rotational speed [degree/s]. Expect small offset in resting position
% * Infrared-Sensor:
% * DeviceMode.InfraRed.Prox *[Default]*
% * Note: currently not recognized
% * DeviceMode.InfraRed.Seek
% * DeviceMode.InfraRed.Remote
% * NXTColor-Sensor:
% * DeviceMode.NXTColor.Reflect *[Default]*
% *Output: value in range 0% to 100% brightness
% * DeviceMode.NXTColor.Ambient
% *Output: value in range 0% to 100% brightness
% * DeviceMode.NXTColor.Color
% *Output: value representing color:
% 1 - black
% 2 - blue
% 3 - green
% 4 - yellow
% 5 - red
% 6 - white
% 7 - brown
% * DeviceMode.NXTColor.Green
% *Output: value in range 0% to 100% of green reflectivityniedrige intensität farbe
% * DeviceMode.NXTColor.Blue
% *Output: value in range 0% to 100% of blue reflectivity
% * DeviceMode.NXTColor.Raw
% *Note: obsolete, functionality available in other modes. Also not working properly. Returning 1 value instead of 3
% * NXTLight-Sensor:
% * DeviceMode.NXTLight.Reflect *[Default]*
% *Output: value in range 0% to 100% brightness
% * DeviceMode.NXTLight.Ambient
% *Output: value in range 0% to 100% brightness
% * NXTSound-Sensor:
% * DeviceMode.NXTSound.DB *[Default]*
% *Output: value in decibel
% * DeviceMode.NXTSound.DBA
% *Output: value in dba weighted according to human hearing
% * NXTTemperature-Sensor
% * DeviceMode.NXTTemperature.C *[Default]*
% * DeviceMode.NXTTemperature.F
% * NXTTouch-Sensor:
% * DeviceMode.NXTTouch.Pushed *[Default]*
% *Output: 0: not pushed, 1: pushed
% * DeviceMode.NXTTouch.Bumps
% *Output: n: number of times pressed and released