Cosmo Schüppel
The movement responsive sound installation awareness and movement in a phonetic garden is a speculative attempt to make the field of perception of a plant experienceable. The installation uses plants to measure the naturally occurring electromagnetic fields in the exhibition space.
Code
A basic example to use a variable resistor (a potentiometer or a photoresistor) and to feed an Arduino board. The analog signal is then converted to digital signal
https://docs.arduino.cc/built-in-examples/analog/AnalogInput