Device may help forecast outbreaks of red tide