As temperature increases, density decreases. This is because the particles have more energy, and spread out, which causes the density to decrease. When the particles spread out, it can also lead to the object changing states. The same effect is seen when the temperature decreases. The particles slow down, have less energy, and go closer together. When the particles come together, it can also lead to an object changing states.