A sensor device (100A, 100A1, 100B, 100D, 100E1, 100E2, 100E3, 100A2, 100B1, 101) for obtaining a reference phase difference and a reference voltage corresponding thereto with the sensor device (100A, 100A1, 100B, 100D, 100E1, 100E2, 100E3, 100A2, 100B1, 101) itself, the sensor device (100A, 100A1, 100B, 100D, 100E1, 100E2, 100E3, 100A2, 100B1, 101) comprising: a first signal generator configured to generate a signal of a first frequency; a second signal generator configured to generate at least a signal of a second frequency different from the first frequency; a calculation part (140, 141) connectable to each of the first signal generator and the second signal generator; a detection element connectable to the first signal generator and the calculation part (140, 141), the detection element comprising a detection part configured to detect an analyte; a reference element connectable to the second signal generator and the calculation part (140, 141), the reference element comprising a reference part, a first connection wire connectable to the first signal generator and the calculation part (140, 141); and a second connection wire connectable to the second signal generator and the calculation part (140, 141), wherein the first signal generator is selectively connected to one of the first connection wire and the detection element, and the second signal generator is selectively connected to one of the second connection wire and the reference element, and wherein the calculation part (140, 141) is configured to obtain a reference phase difference based on a first signal which is obtained by generating the signal of the first frequency from the first signal generator in such a state that the calculation part (140, 141) is connected to the first signal generator, and a second signal which is obtained by generating the signal of the second frequency from the second signal generator in such a state that the calculation part (140, 141) is connected to the second signal generator, and is configured to calculate a reference voltage corresponding to the reference phase difference and based on said first and second signals. a first signal generator configured to generate a signal of a first frequency; a second signal generator configured to generate at least a signal of a second frequency different from the first frequency; a calculation part (140, 141) connectable to each of the first signal generator and the second signal generator; a detection element connectable to the first signal generator and the calculation part (140, 141), the detection element comprising a detection part configured to detect an analyte; a reference element connectable to the second signal generator and the calculation part (140, 141), the reference element comprising a reference part, a first connection wire connectable to the first signal generator and the calculation part (140, 141); and a second connection wire connectable to the second signal generator and the calculation part (140, 141), wherein the first signal generator is selectively connected to one of the first connection wire and the detection element, and the second signal generator is selectively connected to one of the second connection wire and the reference element, and the first signal generator is selectively connected to one of the first connection wire and the detection element, and the second signal generator is selectively connected to one of the second connection wire and the reference element, and wherein the calculation part (140, 141) is configured to obtain a reference phase difference based on a first signal which is obtained by generating the signal of the first frequency from the first signal generator in such a state that the calculation part (140, 141) is connected to the first signal generator, and a second signal which is obtained by generating the signal of the second frequency from the second signal generator in such a state that the calculation part (140, 141) is connected to the second signal generator, and is configured to calculate a reference voltage corresponding to the reference phase difference and based on said first and second signals. is configured to obtain a reference phase difference based on a first signal which is obtained by generating the signal of the first frequency from the first signal generator in such a state that the calculation part (140, 141) is connected to the first signal generator, and a second signal which is obtained by generating the signal of the second frequency from the second signal generator in such a state that the calculation part (140, 141) is connected to the second signal generator, and is configured to calculate a reference voltage corresponding to the reference phase difference and based on said first and second signals.