You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2023-01-27 11:10:05.6253695690 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2941
2023-01-27 11:10:04.8613747890 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2941
2023-01-27 11:10:04.2613789040 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/3001
2023-01-27 11:10:03.5053841070 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9099
2023-01-27 11:00:14.3700143600 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9098
2023-01-27 11:00:05.3179653850 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2940
2023-01-27 11:00:04.4459607350 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2940
2023-01-27 11:00:03.8179573920 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/3000
2023-01-27 11:00:03.7659571160 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9097
2023-01-27 11:00:03.5459559470 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1951
2023-01-27 11:00:03.0619533760 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9096
2023-01-27 10:50:04.9070253820 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2939
2023-01-27 10:50:04.1230349880 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2939
2023-01-27 10:50:03.5510420190 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2999
2023-01-27 10:50:02.8070511820 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9095
2023-01-27 10:40:04.7681524210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2938
2023-01-27 10:40:04.0162043740 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2938
2023-01-27 10:40:03.4202456370 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2998
2023-01-27 10:40:02.7602913680 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9094
2023-01-27 10:30:06.1925771440 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2937
2023-01-27 10:30:05.3765442040 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2937
2023-01-27 10:30:04.6525149790 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2997
2023-01-27 10:30:03.9764876960 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9093
2023-01-27 10:20:05.5457963620 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2936
2023-01-27 10:20:04.7497690420 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2936
2023-01-27 10:20:04.2017502380 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2996
2023-01-27 10:20:03.5057263650 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9092
2023-01-27 10:10:05.2339296710 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2935
2023-01-27 10:10:04.5179190930 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2935
2023-01-27 10:10:03.8819097110 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2995
2023-01-27 10:10:03.1058983030 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9091
2023-01-27 10:00:10.8874916860 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1074
2023-01-27 10:00:09.5994248730 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9090
2023-01-27 10:00:08.8193844180 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1422
2023-01-27 10:00:07.6633244670 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1069
2023-01-27 10:00:06.3272552060 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/559
2023-01-27 10:00:05.5592153970 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1418
2023-01-27 10:00:05.4792112500 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2934
2023-01-27 10:00:04.4831596320 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2934
2023-01-27 10:00:04.3431523780 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/559
2023-01-27 10:00:03.7911237750 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/2994
2023-01-27 10:00:03.4511061580 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9089
2023-01-27 10:00:03.1230891640 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/9088
2023-01-27 09:50:04.7244484750 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/2933
2023-01-27 09:50:03.9604262750 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/2933