Uduino is a powerful plugin that allows you to connect easily Unity and Arduino.
In this tutorial, we are going to use a value from a potentiometer from Arduino to Unity.
This analogRead example can be applied to all other sensors that use Analog Input
More information about Uduino and this tutorial on the website.
You can download Uduino on Unity Asset Store. https://assetstore.unity.com/packages/tools/input-management/uduino-arduino-and-unity-communication-simple-fast-and-stable-78402
Documentation: marcteyssier.com/uduino/
* Excuse my strong French accent