This document discusses the design of a temperature sensor using a two-dimensional photonic crystal. It describes the basic principles of photonic crystals and their ability to inhibit light propagation in bandgap regions. The sensor is designed by introducing a point defect in a silicon-based 2D photonic crystal structure. Simulation results show the output resonant wavelength shifts with increasing temperature levels, allowing for temperature sensing. Parameters like sensitivity, resolution and operating range are evaluated. Finite-difference time-domain (FDTD) simulation is used to analyze the sensor's performance.