Clean the sensor male-female contacts, and check the ground on the harness side of the sensor with an ohm meter. Ask Cruiser54 for the ground sensor fix write up he did. The harness has a bunch of loose crimped piggy backed ground connections that cause wandering idles, high idles...
If the compression does not get up to about 120 psi or higher try some 20W50 dyno (not synthetic) motor oil next. Some marvel mystery oil can held free up stuck piston rings...
Check all the vacuum lines, air filter, and then make sure the rear CCV vacuum line on the rear of the valve cover is clean, or replace it. Check the vacuum line from the throttle body to MAP sensor, make sure it is not loose or leaking vacuum, it is critical to smooth engine operation.
Have you cleaned the throttle body, or IAC valve and port yet? Also you have an EGR valve, so it needs to be tested for sticky, or stuck operation at some point.
The 87-90 closed cooling system is notorious for trapping air in the top of the radiator, and it has only one exit, the curved upper radiator hose, so I try to elevate that hose by disconnecting it from the T-stat, then I also open the heater core heater hose that is also connected to the water pump outlet, to let air into the block, so the coolant can flow and displace air, I also elevate that hose, then I top off the radiator with the upper hose.
Also find the fuel rail, on the front of the fuel rail is a fuel pressure regulator, with a vacuum line. Pull the vacuum line, and if there is gas there, the regulator is bad and will cause stalling and flooding.