It just using mushrooms as a sensor. The mushroom senses light, that causes an electrical response in the mycelium, electronics sense that electric signal and use it as a trigger to perform whatever.
The cool part comes from these living components added to robots having the potential to be better and cheaper than the regular tools we use for the job but unfortunately no sentient mushroom robots to party with yet.