The following example shows how to use an analog read block to read a sensor value and output to the data simulator
After downloading the code to your Microbit, click the Show Data Device button to load the data logger. Here you will see the varying sensor data. This works with sensors like sound, light, pulse, pressure, knobs, etc.
