While a diagnostic scan will read the fault codes, it may not always be obvious from the results what the actual problem is.
Having said that, in my experience, when it comes to SRS faults, the diagnostic scan usually does pinpoint the culprit.
The Front Passenger Seat Occupancy Sensor is a mat of sensors inside the passenger seat. It's aim is to detect the presence of a person (the sensors are sensitive to pressure), and arm the passenger airbag. This prevents the passenger airbag from deploying in the event of a crash when the passenger seat is unoccupied. You can buy a cheapo Chinese emulator on eBay instead of replacing a faulty sensor mat, but I advise against it.
It's item no. 40 in the drawing below:
But, again, the faulty component needs to be confirmed by STAR diagnostic first.