We have developed a 1D photonic crystal that can be used for sensing purposes at terahertz frequencies and which requires less then one microliter of sample material. Using this sensor we have obtained temperature dependent measurements of refractive index and extinction coefficient of glycerol in the temperature range 100 - 294 K.