What were the sleeping conditions for the soldiers in the civil war?

Well the soldiers mainly slept on the ground and dirt out side under the stars. If they were lucky they might have found an abandoned barn to sleep in though.