It is recommended to install a smoke alarm 6 meters away from areas of origin of smoke such as the stove and water heater. Where the smoke alarm is set, the temperature should remain between 4-38 degrees celsius. Kitchen smoke should not reach the smoke alarms easily, or it may lead to raising a false alarm (check out this article for the best smoke detectors for a kitchen.) Moreover, areas that are not well-ventilated are also not suitable.  When the temperature drops and the battery is also not fully charged, there are chances that smoke alarms will produce a sharp sound. So, you have to ensure the optimum temperature.