Raw Sensor Value Block

The Raw Sensor Value block outputs the unprocessed sensor reading, which is a value in the range 0 to 1023. The Raw Sensor Value block only has one mode.



Input
Output
Modes
Raw Sensor Value
All sensors output raw values. Programming blocks take these numbers and convert them into more meaningful numbers.

For example, the Colour Sensor block, in Colour mode, converts the raw values from the Colour Sensor into numbers from 0 to 7. These numbers correspond to specific colours.
Tips and Tricks
The Raw Sensor Value block is useful when you have a sensor that does not have its own Programming Block, for example, a third party sensor.

Using the Raw Sensor Value block allows the sensor to work with the EV3 Software.
Example
This program displays the Raw Value and the corresponding Colour number for the Colour Sensor on the EV3 Brick Display. You can use this program to point the Colour Sensor at various objects and see how the raw sensor values correspond to specific colours.
Inputs and Outputs
The input of the Raw Sensor Value block selects the port that the sensor is connected to. You can enter the input value directly into the block. Alternatively, the value can be supplied by Data Wires from the outputs of other Programming Blocks.
InputTypeAllowed ValuesNotes
Port Number Numeric1-4Selects the sensor port. Motor ports cannot be used with the Raw Sensor Block.
The output of the Raw Sensor Value block gives the raw value of the sensor. To use the output, use a Data Wire to connect it to another Programming Block.
OutputTypeAllowed ValuesNotes
Raw Value Numeric0-1023Raw Sensor Value
Raw Sensor Value
Quick links