We prove a sharp square function estimate for the cone in $\mathbb{R}^3$ and consequently Sogge's local smoothing conjecture for the wave equation in $2+1$ dimensions. The proof uses an incidence estimate for points and tubes and induction on scales. This is joint work with Larry Guth and Ruixiang Zhang.