You need to prepare methodology, Take a idea from uploaded file and make algorithm which is based on temperature sensor.
Support Vector Machines(SVM)
It is a machine learning algorithm that learns to classify data points using labeled training samples. Basically, the problem is to classify those nodes in two parts.
An SVM algorithm, which includes optimizing a quadratic function with linear constraints (that is, the problem of constructing a set of hyperplanes), provides an alternative method to the multi-layer neural network with nonconvex and unconstrained optimization problem.
Attachment:- file.rar