"Sensor not detected? OK, open up Notepad and hit Caps Lock three times quickly. Did some text appear? The sensor is fine, the problem is with your computer."
The rest is just making up a serial protocol.
No need for a special driver.
The free (money-wise) approach we ended up doing was to use WinUSB and marking the device as “vendor specific”, and using libusb to talk directly to it. That was a bit awkward, but covered Windows, Linux, and OSX for us.
This was 5 years ago though. Windows 10 might directly support generic CDC devices, but Win 8.1 didn’t.
Edit: sibling mentions HID. HID does work like this, but we needed more bandwidth than HID provided. CDC was perfect for what we were doing but it didn’t auto install. Mass storage auto-installs but didn’t fit what we were doing.
:D Obviously you have to consider needs of your users as an engineer, when chosing any technology, for their particular problem.
But that requires custom software to interface with it and parse the data or make payload requests and developers are that lazy.