An electronic device is provided which includes a housing, a first plate, a second plate, and a side member, a touch screen display that includes a touch panel, the touch screen display located within the housing and exposed through at least a part of the first plate, a sensor within the housing and configured to detect an atmospheric pressure variation, a processor electrically connected with the touch screen display and the sensor, and a memory electrically connected to the processor, the memory stores instructions which when executed by the processor, cause the processor to receive a touch input caused by pressing a part of the touch screen display by using the touch screen display, monitor the atmospheric pressure variation using the sensor while receiving the touch input, and provide a changed and / or selected function of the touch screen display based on the monitored atmospheric pressure variation and the touch input.