Plenty of people are still flying Microsoft Flight Simulator 2020, and it's still a good sim to write tools for. SimConnect is the door in. Your program runs next to the sim, asks for values, and gets them back.
This one watches the aircraft's systems and only prints when something changes, which suits a status panel better than a firehose.
Install the SDK
Turn on Developer Mode in the sim's general options. On the developer toolbar choose Help > SDK Installer and run what it downloads. The default folder is C:\MSFS SDK and the variable is MSFS_SDK.
If you also have the 2024 SDK, look at where MSFS_SDK points before you build. On a PC with the 2024 SDK it can point there instead.
Project file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.FlightSimulator.SimConnect">
<HintPath>$(MSFS_SDK)\SimConnect SDK\lib\managed\Microsoft.FlightSimulator.SimConnect.dll</HintPath>
</Reference>
<None Include="$(MSFS_SDK)\SimConnect SDK\lib\SimConnect.dll" CopyToOutputDirectory="PreserveNewest" Link="SimConnect.dll" />
</ItemGroup>
</Project>
