How do i use an external slider to send input to UNREAL engine to affect output?

Hello! I am very new to UNREAL. I am trying to do a project where i can use an external slider to change the weather within the unreal environment. It would be great if anyone can give me some handles to do so!

Do i use arduino?
If so, how do i go about linking up arduino to unreal?