Why does my camera make clicking noises in the morning and at night?

This is not a mechanical fault. When your camera detects a light change, it automatically switches between the day and night modes and generates a clicking sound.