The National Weather Service has extended a flood advisory for Riverhead through late Monday night, with 2 to 4 inches of rain possible and a risk of flash flooding, police said.