Q: Have a code P0402 and mechanic said on the invoice bad vacuum hose. on 2000 Toyota Tacoma

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Now it seems to be ideling higher - in drive will go 8-10 miles per hour and with air conditioner on will go 15 miles per hour.
(1) Answer
this is an obd2 trouble code table, it can help you understand the meaning of code.
for p0402,
A code P0402 most likely means one or more of the following has happened:
The DPFE (differential pressure) sensor is faulty and needs to be replaced
There is a blockage in the EGR (most likely carbon buildup)
The EGR valve is faulty
The EGR valve may not be opening due to a lack of vaccuum
Possible Solutions:
With a P0402, it is common for people to replace the EGR valve, only to have the problem return. The most likely solution is to replace the DPFE sensor.
Check the voltage at the DPFE sensor both at idle and when the EGR is open
Replace the DPFE sensor