The basic principle of liquid level measurement with capacitive sensor is described. According to differences in dielectric constant between oil and water, a liquid level detection system for oil tank is designed. The system includes capacitive sensor, signal processing circuit, FPGA logic circuit and the software of computer. Results show that the system has characteristics of easy operation, high precision. It can detect the change of liquid level accurately and effectively.