A B S T R A C TThe molecular affinities of biomolecules have found applications in the areas of clinical diagnostics, drug discovery, as well as allied fields of study. An affinity sensor is a unique in situ assay tool, which is valuable and convenient in practical situations. In this study, we designed a photo-excitable molecular interface with an affinity domain and fabricated with a "swingable" straight-chain affinity molecule immobilized on a semi-conductor electrode (SCE). The straight-chain affinity molecule possessed a photo-excitable dye at one end and was bound to the SCE surface at the other by the EC tag method, which was developed previously. A straight-chain molecule is too long to transfer electrons from the photo-excited dye to the conduction band of the SCE. However, the straight-chain molecule was designed with a "swing" structure, which made the transfer of electrons possible. The central region of the chain molecule has an affinity to the activated estrogen receptor (ER). When the activated ER bound to the affinity region, the molecular lost its swingable function, the electron transfer from the photo-excited dye to the SCE was consequently suppressed. Based on the unique swingable molecular interface, the affinity sensor can be used to determine the in situ concentration of endocrine disrupter ESTROGEN (17b-estradiol) at concentrations ranging from 2 to 10 nM with very good reproducibility. The superior assay reproducibility is responsible for the success of the EC tag method, which is a quantitative method for immobilizing molecules on SCE.