You must first collect data from your sensor. Then do statistics to survey the mean and standard deviation of a sample. To generate outliers samples, it will be necessary to generate a samples away from the mean (+ - 3 * standard deviation)...
please you can use Markov inequality too ... you need basic statistics skills.