2002 Saturn L100

I believe i need to replace my thermostat but i can not find a diagram showing me where it is. my car is driving warm but not over heating and the fluids are fine. it is throwing a code saying air flow problem. i need help fixing my car so i can get my new yearly sticker.