You should increase your following distance:

A four-second following distance is recommended for ideal driving conditions. There are a number of circumstances when a lengthier following distance should be applied, including times when it is difficult to see because of darkness or bad weather.
DMV Writen Test