Oil pressure not registering on Dakota digital gauge.

Not sure how to check the sensor other than replacing it with new one. Here is a link to one on Ebay: OEM Mopar Genuine Oil Pressure Sending Unit Jeep Dodge CHRYSLER 3.6l 5.7l for sale online | eBay