Add References :
"C:\Program Files (x86)\Windows Kits\10\UnionMetadata\[version]\Windows.winmd"
and
"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll"
then
using Windows.Devices.Sensors;