A sensor apparatus for detecting contact or proximity of an object, comprising: a touch sensor including a plurality of X and Y electrodes (XP1-XPn; YP1-YPn); a calculation section arranged for separating a plurality of points of the contact or the proximity that are generated simultaneously, and for calculating corresponding individual sets of positional coordinates, and a system arranged for receiving the detected positional coordinates and for generating a display image on a display device, wherein the calculation section comprises an analysis section arranged for determining, based on a first spatial distribution of the signal intensity detected by the touch sensor, a first threshold for removing noise and offset value from the first spatial distribution of signal intensity, wherein after removing the noise and the offset value from the first spatial distribution of signal intensity by using the first threshold so as to generate a second spatial distribution of signal intensity, the analysis section is arranged to determine a second threshold for separating the second spatial distribution of signal intensity into a plurality of regions, corresponding to a point of contact, each of which has a peak in accordance with the second spatial distribution of signal intensity, wherein the analysis section is arranged to convert the second spatial distribution of signal intensity into two of the one-dimensional distributions (900, 901), each of which corresponds to the X- or Y-axis of the second spatial distribution, and calculates the X-threshold and the Y-threshold so that a number of the peaks in the one-dimensional distributions on the X-axis or the Y-axis becomes maximum, respectively, and defines the second threshold based on the X-threshold and the Y-threshold. a touch sensor including a plurality of X and Y electrodes (XP1-XPn; YP1-YPn); a calculation section arranged for separating a plurality of points of the contact or the proximity that are generated simultaneously, and for calculating corresponding individual sets of positional coordinates, and a system arranged for receiving the detected positional coordinates and for generating a display image on a display device, wherein the calculation section comprises an analysis section arranged for determining, based on a first spatial distribution of the signal intensity detected by the touch sensor, a first threshold for removing noise and offset value from the first spatial distribution of signal intensity, wherein after removing the noise and the offset value from the first spatial distribution of signal intensity by using the first threshold so as to generate a second spatial distribution of signal intensity, the analysis section is arranged to determine a second threshold for separating the second spatial distribution of signal intensity into a plurality of regions, corresponding to a point of contact, each of which has a peak in accordance with the second spatial distribution of signal intensity, wherein the analysis section is arranged to convert the second spatial distribution of signal intensity into two of the one-dimensional distributions (900, 901), each of which corresponds to the X- or Y-axis of the second spatial distribution, and calculates the X-threshold and the Y-threshold so that a number of the peaks in the one-dimensional distributions on the X-axis or the Y-axis becomes maximum, respectively, and defines the second threshold based on the X-threshold and the Y-threshold.