Develop an UWP app for Raspberry Pi device
A UWP app is responsible for collecting sensor data, which means it captures a photo of a person and sends it to the bot, and the bot will process it and send back the results to the Raspberry Pi2. The processed results will be sent to IoT Hub.
Create an UWP App project
Now, let's take a look at the steps we need to follow to create the UWP app:
- Open Visual Studio and create a new project by selecting Universal app as
Universal
|Blank App
template, as follows:

- After the successful creation of the project, right-click on the
Project
and select theAdd Reference
option from the menu.

- Next, from Reference Manager windows select the
Extensions
category under Universal Windows and then select Windows IoT Extensions for the UWP.

- Select the appropriate version of IoT Extensions; here I am using the
10.0.14393.0
version and my Raspberry Pi2 also has the same version of the Windows 10 IoT Core OS.