A one-dimensional (1-D) magnetized InSb photonic crystals layered topology (PCLT) proposed in this paper can realize the functions of logic OR operation and magnetic field sensing detection. In the proposed PCLT, under the transverse magnetic (TM) polarization, the value and frequency of the absorption peak (AP) can be controlled by the external magnetic fields and has a high-quality factor (QF), thus OR logical operation can be achieved. Additionally, since InSb has a magneto-optical effect under magnetic fields, the parity of the structure of the PCLT which adds InSb as defect layers can be broken. Electromagnetic waves (EWs) obtain nonreciprocity when propagating in opposite directions within the PCLT, which means that logical operation and magnetic field sensing detection based on AP can be obtained on the forward and backward scales. For the detection, on the forward scale, optimum performances of QF, sensitivity (S), the figure of merit (FOM), and detection limit (DL) are 62372.09, 0.0169 (2πc/d)/T, 4225 T-1, 1.2×10-5 T, and for the backward detection, the corresponding values are 63626.25, 0.0225 (2πc/d)/T, 5200 T-1, 1×10-5 T. The designed PCLT is innovative in multi-functional and multi-scale, having certain research value and prospects.