This Open Source Online Raspberry Pi Simulator By Microsoft Works Right Inside Your Browser
Now you don’t need a physical Raspberry Pi to get started tinkering with hardware by running code? With the help of Microsoft’s open source Raspberry Pi Simulator, you can do the same right inside your web browser. You can also connect it to the Azure IoT Hub and collect sensor data. Currently, this simulator is in the preview version.
Go here > Raspberry Pi Web Simulator