97 Ford Taurus gear shift stuck in park

I had simular trouble on a different car, although this car at a push button on the gear shift that had to be engaged before moving the shifter to R,D etc… I took it to the dealership where I purchased it and it was some sensor related to the shifting button mechanism, although I had pushed it in, the computer was not registering that.