Been trying to clear and fix error code p0301 on 1997 Honda Accord

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
"Have a 1997 Honda accord LX 4 cyl. Been trying to clear p0301. Replaced spark plugs, wires, dist, rotor, pcv, and cleaned the egr. When the car is cold, start up and idle fine until it warms up. Then it idles a little rough. drives fine until you stop at a light, then I have to keep the rpm up a little. Could it be the TPC sensor?
please help
(3) Answers
Do a mechanical compression check on all for cylinders. You should not have more than 20% difference in PSI between all cylinders.