We used a potentiometer from Arduino to control a Particle System and the light intensity in a scene…