The document presents a novel system for monitoring illegal sand mining using contour mapping and color-based image segmentation, aimed at addressing the adverse environmental effects of illegal mining in developing nations. This system employs a vehicle detection algorithm that identifies vehicles and calculates the amount of sand they carry compared to a threshold, achieving an accuracy rate of 94.9%. The methodology integrates computer vision techniques such as edge detection and segmentation, making it cost-effective and suitable for real-time implementation on smartphones.