There's a good chance that you can buy the original AC Delco (Delphi) camshaft position sensor online for a whole lot cheaper than somewhere local.
The following links will help you comparison shop for the factory original AC Delco (and aftermarket) camshaft position sensor:
Unsure if the above camshaft position sensor fits your particular vehicle? Don't worry... once you get to the site, they'll make sure it is by asking you the specifics of your vehicle. If the above don't fit, they'll find you the right one.
I've written several 3.1L and 3.4L troubleshooting articles that may be of interest to you. You can access all of them in this index: GM 3.1L, 3.4L Index of Articles.
Here's a sample of the diagnostic test tutorials you'll find in the index:
“For instance, on the planet Earth, man had always assumed that he was more
intelligent than dolphins because he had achieved so much —the wheel,
New York, wars and so on —whilst all the dolphins had ever done was
muck about in the water having a good time. But conversely,
the dolphins had always believed that they were far more
intelligent than man —for precisely the same reasons!”
The Hitchhiker's Guide to the Galaxy