This document proposes a method to detect diseases in tree leaves and fruits using convolutional neural networks. The method involves preprocessing images by resizing and converting them to grayscale. Noise is removed using median filtering. Images are then segmented and features are extracted. A convolutional neural network is trained on labeled image features and used to classify new images and detect diseases. Results on test images show the preprocessing steps and segmentation being applied before classification with CNN. The method is presented as an effective way to accurately detect diseases at early stages for successful agriculture.