C# code for Raspberry PI