Hello @k ,
I expect you already use the GPIO Nuget packages
<PackageReference Include="System.Device.Gpio" Version="1.0.0" />
Check out the Device Bindings.
There are many examples of other GPIO controlled sensors including sensors making use of SoftwareSerial.
Here is an example of how to use the library.