A system for optically detecting a flame, the system comprising: an optical flame detector, wherein the optical flame detector comprises a magnetometer, an accelerometer and a gyroscope; and an information handling system connected to the optical flame detector via a wireless connection or a wired connection, wherein the information handling system comprises a memory and a central processing unit, wherein the memory device is configured to store one or more instructions, wherein the information handling system is configured to: obtain orientation data from the magnetometer, the accelerometer, and the gyroscope, positioned within a housing in the optical flame detector, wherein the orientation data comprises movement and/or vibration data, angular velocity data, and direction data, and wherein the orientation data comprises initial orientation data obtained when the optical flame detector is initially installed on a structure, and continuous or periodic orientation data obtained during operation of the optical flame detector; and determine a deviation between a current instance of the continuous or periodic orientation data and the initial orientation data, determine that the optical flame detector is in a correct position when the deviation is within a pre-determined limit, and determine that the optical flame detector is in an incorrect position when the deviation is outside of the pre-determined limit. an optical flame detector, wherein the optical flame detector comprises a magnetometer, an accelerometer and a gyroscope; and an information handling system connected to the optical flame detector via a wireless connection or a wired connection, wherein the information handling system comprises a memory and a central processing unit, wherein the memory device is configured to store one or more instructions, wherein the information handling system is configured to: obtain orientation data from the magnetometer, the accelerometer, and the gyroscope, positioned within a housing in the optical flame detector, wherein the orientation data comprises movement and/or vibration data, angular velocity data, and direction data, and wherein the orientation data comprises initial orientation data obtained when the optical flame detector is initially installed on a structure, and continuous or periodic orientation data obtained during operation of the optical flame detector; and determine a deviation between a current instance of the continuous or periodic orientation data and the initial orientation data, determine that the optical flame detector is in a correct position when the deviation is within a pre-determined limit, and determine that the optical flame detector is in an incorrect position when the deviation is outside of the pre-determined limit. obtain orientation data from the magnetometer, the accelerometer, and the gyroscope, positioned within a housing in the optical flame detector, wherein the orientation data comprises movement and/or vibration data, angular velocity data, and direction data, and wherein the orientation data comprises initial orientation data obtained when the optical flame detector is initially installed on a structure, and continuous or periodic orientation data obtained during operation of the optical flame detector; and determine a deviation between a current instance of the continuous or periodic orientation data and the initial orientation data, determine that the optical flame detector is in a correct position when the deviation is within a pre-determined limit, and determine that the optical flame detector is in an incorrect position when the deviation is outside of the pre-determined limit.