Cost-Effective Liquid and Solid Material Detection Solution for Industrial