A Cosmic ray detector wherein the cosmic ray detector comprises a digital part and an analog part, wherein the digital part includes a WiFi module communicatively coupled with a WiFi antenna connector, moreover the digital part includes a GPS module communicatively coupled with a GPS antenna connector and the digital part includes a microcontroller, an analog-digital converter-ADC and a non-volatile memory, wherein the WiFi module, the GPS module (5), the ADC and the non-volatile memory are communicatively coupled with the microcontroller, moreover the digital part (1) includes a power supply unit electrically coupled with the microcontroller, wherein the power supply unit is configured to provide a power supply to the microcontroller, while the analog part includes a top scintillator coupled with a first silicon photomultiplier—SiPM and a bottom scintillator coupled with a second silicon photomultiplier—SiPM, wherein the first SiPM and the second SiPM include a photodetector configured to detect single photons, moreover the analog part includes at least one amplifier, wherein the first SiPM and the second SiPM are coupled with the amplifier, yet further the analog part includes a DC/DC converter, and at least one high voltage power supply—HVPS, wherein the DC/DC converter is communicatively coupled with the amplifier and the amplifier is electrically coupled with the HVPS, while the HVPS is configured to supply voltage to the first SiPM and the second SiPM within a range from 10 V to 100 V, and the DC/DC converter is communicatively coupled with the power supply unit, while the power supply unit is electrically coupled with the HVPS, wherein the DC/DC converter is configured to provide a correct supply voltage to the amplifier, and further, the analog part includes at least one analog track environment sensor and an analog track control unit, wherein the analog track control unit is an independent unit for controlling and monitoring the analog part, electrically coupled with the HVPS and communicatively coupled with the at least one analog track environment sensor, the microcontroller and the DC/DC converter, wherein the DC/DC converter is controlled from a level of the analog track control unit, and moreover the ADC is communicatively coupled with the amplifier.