In the production method of polyamide of the present invention, the mole balance at a set point during melt polymerization is estimated from a pre-established equation for calculating the mole balance during melt polymerization from a melt viscosity. The TOF sensor pixel includes a photodetector, a capacitor, and circuitry. One of the walls has an intake opening for receiving the discharge air.