Complex sentence: For example, dataflow can be used to redraw a picture in response to mouse movements, or to make robot turn in response to a change in light level.
Split into simpler sentences: For example, dataflow might be used to redraw a picture in response to mouse movements. Or it might be used to make robot turn in response to a change in light level.