Using technology to help prevent food waste