Bovine mastitis of a cow causes a huge loss of milk in dairy industries. These losses result in decreased yield of milk products such as cheese, curd. Early detection can lead to complete remedy. There are two types of mastitis: subclinical mastitis and clinical mastitis. Subclinical mastitis is challenging because we cannot see any visible changes by naked eye in the milk or the udder. General detection method for subclinical mastitis is counting somatic cells in milk. The aim of our work is to develop cost-effective solution for early detection of subclinical mastitis. This paper contains method for online detection of subclinical mastitis. Mastitis detection is done by checking electrical conductivity of milk analyzing conductivity with standard reading. Using Internet of Things (IoT), data will be stored and used for diagnosis of mastitis and related treatment will be given to cow. © 2018, Springer Nature Singapore Pte Ltd.