We describe a very simple and inexpensive interferometer setup which provides high accuracy measurements of the refractive index (n) of liquids with temperature. A standard deviation σ (n) =5.4×10-7 has been observed in isooctane liquid when fitting n to a linear temperature variation.