The electronic probe trap OITD-PIS is a sensor designed to automatically monitor the number of pests in grain bulks by utilizing the pest biological characteristics. It uses two pairs of infrared photoelectric diodes less than 1 yuan as signal input and the specially designed circuit to detect pests entered the trap, leading to high cost performance and practical value. To improve the detection applicability and accuracy of collected signals when the pests are passing the diodes, this paper proposes one architecture for the infrared photoelectric sequence data acquisition with adaptive threshold. In the conventional data acquisition architecture, the CPU undertakes most of the work, which makes the system unable to guarantee the real-time performance, extends the response time for other tasks. Also, there is not an idle state for the CPU, therefore the power consumption of the system cannot be reduced. And this architecture is based on hardware-level implementation. The average time of communication response is about 180.8057ms and this architecture can help develop low-power devices. The designed adaptive threshold algorithm can effectively eliminate the detection error caused by the inconsistent parameters of infrared diodes; the sampling frequency and sampling length can be dynamically changed to accurately capture the voltage sequence data of stored grain pests with different shapes and sizes. The results showed that the architecture can accurately capture the voltage sequence data after photoelectric conversion when the object is passing the detection section.