Whining in the crate tends to be because the puppy has learned to whine in order to get the door open.
Or because the puppy needs to relieve himself.
It is essential if you crate your puppy during the day or at night, that you give him chance to leave the crate often enough to keep himself clean.