cloudinary_config

//dependency:
		<dependency>
			<groupId>com.cloudinary</groupId>
			<artifactId>cloudinary-http44</artifactId>
			<version>1.32.2</version>
		</dependency>
		
//entity:
@Column(name = "image", nullable = true)
private String imageUrl; // saves url

//service:
import org.springframework.stereotype.Service;

import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;

@Service
public class CloudinaryService {
    private fi

SoilMoistureCapacitiveSensorSetup

This is the code for the setup of the "Soil Moisture Capacitive Sensor V2)
#include <Arduino.h>

#define SOIL_MOISTURE_SENSOR_PIN 4
int airValue = 2603;   // sensor in dry air
int waterValue = 1300; // sensor fully inserted in water

void setup() 
{
  Serial.begin(115200);
  delay(1000);
  Serial.println("Starting Soil Moisture Capacitive Sensor V2 initialization...");
}

void loop() 
{
  int soilMoistureRaw = analogRead(SOIL_MOISTURE_SENSOR_PIN);
  if (soilMoistureRaw > airValue + 100 || soilMoistureRaw < waterValue - 100) 
  {
    Serial.println("Soil Moisture Capaci

DHT22 Setup

This is the code for the setup of the DHT22 sensor
#include <Arduino.h>
#include <DHT.h>

#define DHTPIN 4
#define DHTTYPE DHT22

DHT dht(DHTPIN, DHTTYPE); 

void setup() 
{
  Serial.begin(115200);
  dht.begin();

  delay(1000); // time for serial monitor to connect
  Serial.println("Starting DHT22 sensor initialization...");
}

void loop() 
{
  float humidity = dht.readHumidity();
  float temperature = dht.readTemperature();

  if(isnan(temperature) || isnan(humidity))
  {
    Serial.println("DHT22 was not connected!");
    return;
  }

  Seria

BMP280 Setup

This is the code for the setup of the BMP280 sensor
#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_BMP280.h>

// I2C communication
#define SDA 8
#define SCL 9

Adafruit_BMP280 bmp;

void setup()
{
    Serial.begin(115200);
    Wire.begin(SDA, SCL); // Initialize I2C with custom pins

    delay(1000); // time for serial monitor to connect
    Serial.println("Starting BMP280 sensor initialization...");

    if (bmp.begin(BMP280_ADDRESS_ALT))
    {
        Serial.println("BMP280 found at 0x76");
        bmp.setSampling(Adafruit_BMP280::MO

UserController

package com.legends.learn.controllers;

import java.util.List;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.legends.learn.entites.User;
import com.legends.learn.services.UserService;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.

UserService

package com.legends.learn.services;

import java.util.List;
import java.util.Optional;

import org.springframework.stereotype.Service;

import com.legends.learn.entites.User;
import com.legends.learn.repositories.UserRepository;

@Service
public class UserService {
private final UserRepository userRepository;

public UserService(UserRepository userRepository){
    this.userRepository = userRepository;
}

public User addUser(User data){
    return this.userRepository.save(data)

UserRepository

package com.legends.learn.repositories;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.legends.learn.entites.User;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

}

User

package com.legends.learn.entites;

import java.time.LocalDate;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.PrePersist;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

how to build ipa using xcode

1. Run bun i , bun run clean , and do everything we do when we build the app
Run bun run start and keep the Metro bundler running through the entire process
Run xed ios on the project folder. It will open the Xcode project
Set the target device (On the top of the Xcode window, Right after MyBeacon > ) to Any iOS Device (arm64)
On the top menu, Press Product > Archive
When the build finishes, Organizer window will come. Press Distribute App
Select Custom, Next, Select App Store Connect, Next, and

Sample Secure Boot Inventory Data Collection

function Detect-SecureBootCertUpdateStatus {
    <#
    .SYNOPSIS
        Detects Secure Boot certificate update status for fleet-wide monitoring.

    .DESCRIPTION
        This detection script collects Secure Boot status, certificate update registry values,
        and device information. It outputs a JSON string for monitoring and reporting.

        Compatible with Intune Remediations, GPO-based collection, and other management tools.
        No remediation script is needed — this 

UserController

package com.legends.learn.controllers;

import java.util.List;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.legends.learn.entites.User;
import com.legends.learn.services.UserService;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.

UserService

package com.legends.learn.services;

import java.util.List;
import java.util.Optional;

import org.springframework.stereotype.Service;

import com.legends.learn.entites.User;
import com.legends.learn.repositories.UserRepository;

@Service
public class UserService {
private final UserRepository userRepository;

public UserService(UserRepository userRepository){
    this.userRepository = userRepository;
}

public User addUser(User data){
    return this.userRepository.save(data)

UserRepository

package com.legends.learn.repositories;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.legends.learn.entites.User;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

}

User

package com.legends.learn.entites;

import java.time.LocalDate;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.PrePersist;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

FormData_13

import { useState } from "react";
import { Text, View, TextInput, TouchableOpacity, Switch, Platform, ScrollView } from "react-native";
import TopNav from "./topNav";
import BottomNav from "./bottomNav_2";
import * as DocumentPicker from 'expo-document-picker';

let DateTimePicker = null;
if (Platform.OS !== 'web') {
    try {
        DateTimePicker = require('@react-native-community/datetimepicker').default;
    } catch (error) {
        console.log('DateTimePicker not available');

SensorData_12

import React, { useEffect, useState } from "react";
import { View, Text, ScrollView } from "react-native";
import BottomNav from "./bottomNav_2";
import TopNav from './topNav';

export default function Dashboard({ navigation }) {
  const [values, setValues] = useState({
    temperature: 0,
    humidity: 0,
    light: 0,
    pressure: 0,
    moisture: 0,
    altitude: 0,
  });

  return (
    <View style={{ flex: 1, width: "100%" }}>
      <TopNav navigation={navigation} />